From 4a4181146585036b2db72fb57d2ec7ed8fe83656 Mon Sep 17 00:00:00 2001 From: Bojan Bogojevic <20166636+Bojan023@users.noreply.github.com> Date: Mon, 29 May 2023 14:14:09 +0200 Subject: [PATCH] lifecycle: Add depends_on for worker and server container (#5634) Add depend_on for worker and server container --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8fe64a7cd..41e7fc004 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,6 +49,9 @@ services: ports: - "${COMPOSE_PORT_HTTP:-9000}:9000" - "${COMPOSE_PORT_HTTPS:-9443}:9443" + depends_on: + - postgresql + - redis worker: image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2023.5.2} restart: unless-stopped @@ -73,6 +76,9 @@ services: - ./custom-templates:/templates env_file: - .env + depends_on: + - postgresql + - redis volumes: database: