docker-compose.ci.postgres.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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: "pgdb.internal"
  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. aliases:
  30. - pgdb.internal
  31. authentik-redis:
  32. image: "redis:alpine"
  33. command: --save 60 1 --loglevel warning
  34. restart: unless-stopped
  35. healthcheck:
  36. test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
  37. start_period: 20s
  38. interval: 30s
  39. retries: 5
  40. timeout: 3s
  41. volumes:
  42. - redis_vol:/data
  43. networks:
  44. - fulltest
  45. authentik:
  46. image: ghcr.io/goauthentik/server:2024.10.1
  47. restart: unless-stopped
  48. command: server
  49. env_file:
  50. - ci.env
  51. depends_on:
  52. - authentik-redis
  53. - db-postgres
  54. networks:
  55. - fulltest
  56. authentik-worker:
  57. image: ghcr.io/goauthentik/server:2024.10.1
  58. restart: unless-stopped
  59. command: worker
  60. env_file:
  61. - ci.env
  62. depends_on:
  63. - authentik-redis
  64. - db-postgres
  65. networks:
  66. - fulltest
  67. authentik-ldap:
  68. image: ghcr.io/goauthentik/ldap:2024.10.1
  69. environment:
  70. AUTHENTIK_HOST: "http://authentik:9000"
  71. AUTHENTIK_INSECURE: "true"
  72. AUTHENTIK_TOKEN: "wKYZuRcI0ETtb8vWzMCr04oNbhrQUUICy89hSpDln1OEKLjiNEuQ51044Vkp"
  73. restart: unless-stopped
  74. depends_on:
  75. - authentik
  76. networks:
  77. - fulltest
  78. volumes:
  79. psql_vol:
  80. redis_vol: