Files

92 lines
2.0 KiB
YAML
Raw Permalink Normal View History

2024-12-24 08:57:54 +10:00
# WARNING: This is a CI docker-compose file used for building and testing of the entire app, it should not be used for production.
services:
cypress:
environment:
2025-10-27 08:13:03 +10:00
CYPRESS_stack: "postgres"
NPM_ADMIN_PORT: 8000
2024-12-24 08:57:54 +10:00
fullstack:
environment:
2025-11-10 10:30:16 +10:00
DB_POSTGRES_HOST: "pgdb.internal"
2025-10-27 08:13:03 +10:00
DB_POSTGRES_PORT: "5432"
DB_POSTGRES_USER: "npm"
DB_POSTGRES_PASSWORD: "npmpass"
DB_POSTGRES_NAME: "npm"
NPM_ADMIN_PORT: 8000
2024-12-24 08:57:54 +10:00
depends_on:
- db-postgres
- authentik
- authentik-worker
- authentik-ldap
expose:
- "8000/tcp"
2024-12-24 08:57:54 +10:00
db-postgres:
2025-10-27 08:13:03 +10:00
image: postgres:17
2024-12-24 08:57:54 +10:00
environment:
2025-10-27 08:13:03 +10:00
POSTGRES_USER: "npm"
POSTGRES_PASSWORD: "npmpass"
POSTGRES_DB: "npm"
2024-12-24 08:57:54 +10:00
volumes:
- psql_vol:/var/lib/postgresql/data
- ./ci/postgres:/docker-entrypoint-initdb.d
networks:
2025-11-10 10:30:16 +10:00
fulltest:
aliases:
- pgdb.internal
2024-12-24 08:57:54 +10:00
authentik-redis:
2025-10-27 08:13:03 +10:00
image: "redis:alpine"
2024-12-24 08:57:54 +10:00
command: --save 60 1 --loglevel warning
restart: unless-stopped
healthcheck:
2025-10-27 08:13:03 +10:00
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
2024-12-24 08:57:54 +10:00
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
volumes:
- redis_vol:/data
2025-11-10 10:30:16 +10:00
networks:
- fulltest
2024-12-24 08:57:54 +10:00
authentik:
image: ghcr.io/goauthentik/server:2024.10.1
restart: unless-stopped
command: server
env_file:
- ci.env
depends_on:
- authentik-redis
- db-postgres
2025-11-10 10:30:16 +10:00
networks:
- fulltest
2024-12-24 08:57:54 +10:00
authentik-worker:
image: ghcr.io/goauthentik/server:2024.10.1
restart: unless-stopped
command: worker
env_file:
- ci.env
depends_on:
- authentik-redis
- db-postgres
2025-11-10 10:30:16 +10:00
networks:
- fulltest
2024-12-24 08:57:54 +10:00
authentik-ldap:
image: ghcr.io/goauthentik/ldap:2024.10.1
environment:
2025-10-27 08:13:03 +10:00
AUTHENTIK_HOST: "http://authentik:9000"
AUTHENTIK_INSECURE: "true"
AUTHENTIK_TOKEN: "wKYZuRcI0ETtb8vWzMCr04oNbhrQUUICy89hSpDln1OEKLjiNEuQ51044Vkp"
2024-12-24 08:57:54 +10:00
restart: unless-stopped
depends_on:
- authentik
2025-11-10 10:30:16 +10:00
networks:
- fulltest
2024-12-24 08:57:54 +10:00
volumes:
psql_vol:
redis_vol: