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