docker-compose.ci.postgres.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. NPM_DB_DRIVER: 'postgres'
  9. NPM_DB_HOST: 'db-postgres'
  10. NPM_DB_PORT: '5432'
  11. NPM_DB_USERNAME: 'npm'
  12. NPM_DB_PASSWORD: 'npmpass'
  13. NPM_DB_NAME: 'npm'
  14. NPM_DB_SSLMODE: 'disable'
  15. depends_on:
  16. - db-postgres
  17. - authentik
  18. - authentik-worker
  19. - authentik-ldap
  20. db-postgres:
  21. image: postgres:latest
  22. environment:
  23. POSTGRES_USER: 'npm'
  24. POSTGRES_PASSWORD: 'npmpass'
  25. POSTGRES_DB: 'npm'
  26. volumes:
  27. - psql_vol:/var/lib/postgresql/data
  28. - ./ci/postgres:/docker-entrypoint-initdb.d
  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: