Several of these had drifted so far they were unrecognizable (Nextcloud was a bare minio stub, Ollama was missing the ollama service entirely, Immich was missing 2 of 4 services). Also removed a real, exposed Authentik OAuth client_id/secret that was sitting in Paperless-NGX's entry (confirmed stale/rotated already, but shouldn't have been public regardless) and stripped internal Caddy CA trust details from every file per the same rule applied to nocodb/dashy etc.
109 lines
2.9 KiB
YAML
109 lines
2.9 KiB
YAML
services:
|
|
postgresql:
|
|
env_file:
|
|
- .env
|
|
container_name: authentik-postgres
|
|
environment:
|
|
POSTGRES_DB: ${PG_DB}
|
|
POSTGRES_PASSWORD: ${PG_PASS}
|
|
POSTGRES_USER: ${PG_USER}
|
|
command: >
|
|
postgres
|
|
-c max_connections=400
|
|
-c shared_buffers=256MB
|
|
-c work_mem=8MB
|
|
-c maintenance_work_mem=128MB
|
|
-c effective_cache_size=1GB
|
|
healthcheck:
|
|
interval: 30s
|
|
retries: 5
|
|
start_period: 20s
|
|
test:
|
|
- CMD-SHELL
|
|
- pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}
|
|
timeout: 5s
|
|
image: docker.io/library/postgres:16-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /path/to/authentik/database:/var/lib/postgresql/data
|
|
networks:
|
|
- authentik-net
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: authentik-redis
|
|
restart: unless-stopped
|
|
command: redis-server --appendonly yes
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- /path/to/authentik/redis:/data
|
|
networks:
|
|
- authentik-net
|
|
|
|
server:
|
|
command: server
|
|
container_name: authentik-server
|
|
depends_on:
|
|
postgresql:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
AUTHENTIK_POSTGRESQL__HOST: postgresql
|
|
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB}
|
|
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
|
|
AUTHENTIK_POSTGRESQL__USER: ${PG_USER}
|
|
AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY}
|
|
AUTHENTIK_REDIS__HOST: redis
|
|
AUTHENTIK_URL: ${AUTHENTIK_URL}
|
|
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2026.5.3}
|
|
ports:
|
|
- ${COMPOSE_PORT_HTTP}:9000
|
|
restart: unless-stopped
|
|
shm_size: 512mb
|
|
volumes:
|
|
- /path/to/authentik/data:/data
|
|
- /path/to/authentik/custom-templates:/templates
|
|
networks:
|
|
- authentik-net
|
|
|
|
worker:
|
|
command: worker
|
|
container_name: authentik-worker
|
|
depends_on:
|
|
postgresql:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
AUTHENTIK_POSTGRESQL__HOST: postgresql
|
|
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB}
|
|
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
|
|
AUTHENTIK_POSTGRESQL__USER: ${PG_USER}
|
|
AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY}
|
|
AUTHENTIK_REDIS__HOST: redis
|
|
AUTHENTIK_URL: ${AUTHENTIK_URL}
|
|
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2026.5.3}
|
|
restart: unless-stopped
|
|
shm_size: 512mb
|
|
user: root
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /path/to/authentik/data:/data
|
|
- /path/to/authentik/certs:/certs
|
|
- /path/to/authentik/custom-templates:/templates
|
|
networks:
|
|
- authentik-net
|
|
|
|
networks:
|
|
authentik-net:
|
|
external: true
|