fix container

This commit is contained in:
Dobromir Popov
2026-01-06 11:45:22 +02:00
parent 9f7a889447
commit 70d8b1c93c

View File

@@ -52,25 +52,23 @@ services:
server:
image: ghcr.io/goauthentik/server:2025.10.3
command: server
depends_on:
postgresql:
condition: service_healthy
init-secrets:
condition: service_completed_successfully
entrypoint:
- sh
- -c
entrypoint: ["/bin/bash", "-c"]
command:
- |
export AUTHENTIK_SECRET_KEY=$$(cat /secrets/secret_key)
export AUTHENTIK_POSTGRESQL__PASSWORD=$$(cat /secrets/pg_pass)
exec /usr/local/bin/dumb-init -- ak server
exec ak server
environment:
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__NAME: authentik
AUTHENTIK_POSTGRESQL__USER: authentik
ports:
- 9000:9000
- 9002:9000
- 9443:9443
restart: unless-stopped
volumes:
@@ -80,19 +78,17 @@ services:
worker:
image: ghcr.io/goauthentik/server:2025.10.3
command: worker
depends_on:
postgresql:
condition: service_healthy
init-secrets:
condition: service_completed_successfully
entrypoint:
- sh
- -c
entrypoint: ["/bin/bash", "-c"]
command:
- |
export AUTHENTIK_SECRET_KEY=$$(cat /secrets/secret_key)
export AUTHENTIK_POSTGRESQL__PASSWORD=$$(cat /secrets/pg_pass)
exec /usr/local/bin/dumb-init -- ak worker
exec ak worker
environment:
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__NAME: authentik