lifecycle: Add depends_on for worker and server container (#5634)
Add depend_on for worker and server container
This commit is contained in:
parent
8dbfafe612
commit
4a41811465
|
@ -49,6 +49,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "${COMPOSE_PORT_HTTP:-9000}:9000"
|
- "${COMPOSE_PORT_HTTP:-9000}:9000"
|
||||||
- "${COMPOSE_PORT_HTTPS:-9443}:9443"
|
- "${COMPOSE_PORT_HTTPS:-9443}:9443"
|
||||||
|
depends_on:
|
||||||
|
- postgresql
|
||||||
|
- redis
|
||||||
worker:
|
worker:
|
||||||
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2023.5.2}
|
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2023.5.2}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -73,6 +76,9 @@ services:
|
||||||
- ./custom-templates:/templates
|
- ./custom-templates:/templates
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
depends_on:
|
||||||
|
- postgresql
|
||||||
|
- redis
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database:
|
database:
|
||||||
|
|
Reference in New Issue