docker-compose.ci.postgres.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # WARNING: This is a CI docker-compose file used for building and testing of the entire app, it should not be used for production.
  2. services:
  3. cypress:
  4. environment:
  5. CYPRESS_stack: "postgres"
  6. fullstack:
  7. environment:
  8. DB_POSTGRES_HOST: "db-postgres"
  9. DB_POSTGRES_PORT: "5432"
  10. DB_POSTGRES_USER: "npm"
  11. DB_POSTGRES_PASSWORD: "npmpass"
  12. DB_POSTGRES_NAME: "npm"
  13. depends_on:
  14. - db-postgres
  15. - authentik
  16. - authentik-worker
  17. - authentik-ldap
  18. db-postgres:
  19. image: postgres:17
  20. environment:
  21. POSTGRES_USER: "npm"
  22. POSTGRES_PASSWORD: "npmpass"
  23. POSTGRES_DB: "npm"
  24. volumes:
  25. - psql_vol:/var/lib/postgresql/data
  26. - ./ci/postgres:/docker-entrypoint-initdb.d
  27. networks:
  28. - fulltest
  29. authentik-redis:
  30. image: "redis:alpine"
  31. command: --save 60 1 --loglevel warning
  32. restart: unless-stopped
  33. healthcheck:
  34. test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
  35. start_period: 20s
  36. interval: 30s
  37. retries: 5
  38. timeout: 3s
  39. volumes:
  40. - redis_vol:/data
  41. authentik:
  42. image: ghcr.io/goauthentik/server:2024.10.1
  43. restart: unless-stopped
  44. command: server
  45. env_file:
  46. - ci.env
  47. depends_on:
  48. - authentik-redis
  49. - db-postgres
  50. authentik-worker:
  51. image: ghcr.io/goauthentik/server:2024.10.1
  52. restart: unless-stopped
  53. command: worker
  54. env_file:
  55. - ci.env
  56. depends_on:
  57. - authentik-redis
  58. - db-postgres
  59. authentik-ldap:
  60. image: ghcr.io/goauthentik/ldap:2024.10.1
  61. environment:
  62. AUTHENTIK_HOST: "http://authentik:9000"
  63. AUTHENTIK_INSECURE: "true"
  64. AUTHENTIK_TOKEN: "wKYZuRcI0ETtb8vWzMCr04oNbhrQUUICy89hSpDln1OEKLjiNEuQ51044Vkp"
  65. restart: unless-stopped
  66. depends_on:
  67. - authentik
  68. volumes:
  69. psql_vol:
  70. redis_vol: