From a61b149dc2aab6e280885dbffd932dab2aad7c97 Mon Sep 17 00:00:00 2001 From: peskyadmin Date: Mon, 14 Apr 2025 18:29:03 -0500 Subject: [PATCH] fix depends_on and volumes and change to localhost --- docker-compose.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c6604bd..5c06acb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + authentik-ts: + condition: service_started \ No newline at end of file