fix depends_on and volumes and change to localhost

This commit is contained in:
peskyadmin 2025-04-14 18:29:03 -05:00
parent 93c1062179
commit a61b149dc2

View File

@ -58,8 +58,8 @@ services:
restart: unless-stopped
command: server
environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_REDIS__HOST: localhost
AUTHENTIK_POSTGRESQL__HOST: localhost
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
@ -77,15 +77,16 @@ services:
condition: service_healthy
redis:
condition: service_healthy
- authentik-ts
authentik-ts:
condition: service_started
authentik-worker:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2025.2.4}
container_name: authentik-worker
restart: unless-stopped
command: worker
environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_REDIS__HOST: localhost
AUTHENTIK_POSTGRESQL__HOST: localhost
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
@ -98,9 +99,9 @@ services:
# user: root
volumes:
# - /var/run/docker.sock:/var/run/docker.sock
- ./authentik-worker/media:/media
- ./authentik/media:/media
- ./authentik-worker/certs:/certs
- ./authentik-worker/templates:/templates
- ./authentik/templates:/templates
env_file:
- .env
network_mode: service:authentik-ts
@ -109,4 +110,5 @@ services:
condition: service_healthy
redis:
condition: service_healthy
- authentik-ts
authentik-ts:
condition: service_started