The ./blueprints bind resolved to Portainer's internal /data/compose/17
path, so authentik saw an empty dir and never applied it. Good thing:
the June snapshot pinned the embedded outpost to 11 providers (it has
22 now) and would recreate 5 retired forward-auth providers, including
one in front of Gitea. Providers are managed via the Authentik API; the
DB is the source of truth. File remains in git history (109cc0d).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
97 lines
2.7 KiB
YAML
97 lines
2.7 KiB
YAML
# authentik stack — Authentik server + worker + dedicated Postgres and Redis.
|
|
#
|
|
# Volume -> bind-mount conversions (both low density -> SSD):
|
|
# db data -> /config/authentik/postgres
|
|
# redis data -> /config/authentik/redis
|
|
# Only the server joins edge (auth.ginnoir.com); worker/db/redis stay private.
|
|
|
|
services:
|
|
authentik-server:
|
|
container_name: authentik_server
|
|
image: ghcr.io/goauthentik/server:2026.5.3
|
|
restart: unless-stopped
|
|
command: server
|
|
networks: [authentik, edge]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
AUTHENTIK_HOST: https://auth.ginnoir.com
|
|
AUTHENTIK_REDIS__HOST: authentik-redis
|
|
AUTHENTIK_POSTGRESQL__HOST: authentik-db
|
|
AUTHENTIK_ERROR_REPORTING__ENABLED: "false"
|
|
# No custom blueprints: providers/apps are managed via the Authentik API and
|
|
# the DB is the source of truth. The old ./blueprints mount resolved to
|
|
# Portainer's internal /data/compose/17/... (empty on the host), and the
|
|
# June snapshot it held would have stripped the embedded outpost to 11 providers.
|
|
ports:
|
|
- "9200:9000"
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
depends_on:
|
|
authentik-db:
|
|
condition: service_healthy
|
|
authentik-redis:
|
|
condition: service_healthy
|
|
|
|
authentik-worker:
|
|
container_name: authentik_worker
|
|
image: ghcr.io/goauthentik/server:2026.5.3
|
|
restart: unless-stopped
|
|
command: worker
|
|
networks: [authentik]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
AUTHENTIK_REDIS__HOST: authentik-redis
|
|
AUTHENTIK_POSTGRESQL__HOST: authentik-db
|
|
AUTHENTIK_ERROR_REPORTING__ENABLED: "false"
|
|
depends_on:
|
|
authentik-db:
|
|
condition: service_healthy
|
|
authentik-redis:
|
|
condition: service_healthy
|
|
|
|
authentik-db:
|
|
container_name: postgres_authentik
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
labels:
|
|
- "com.centurylabs.watchtower.enable=false"
|
|
networks: [authentik]
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
- /config/authentik/postgres:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U authentik -d authentik"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
authentik-redis:
|
|
container_name: redis_authentik
|
|
image: redis:7-alpine
|
|
restart: unless-stopped
|
|
labels:
|
|
- "com.centurylabs.watchtower.enable=false"
|
|
networks: [authentik]
|
|
command: --save 60 1 --loglevel warning
|
|
volumes:
|
|
- /config/authentik/redis:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
networks:
|
|
authentik:
|
|
name: authentik
|
|
driver: bridge
|
|
edge:
|
|
name: edge
|
|
external: true
|