From d8b8e8a5a33d8ec123cd1303cdd028a4541f927b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 16 Apr 2021 09:03:58 +0200 Subject: [PATCH] root: add restart: unless-stopped to compose Signed-off-by: Jens Langhammer --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index c37ee27fe..6e78c65fb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,7 @@ version: '3.2' services: postgresql: image: postgres:12 + restart: unless-stopped volumes: - database:/var/lib/postgresql/data networks: @@ -20,6 +21,7 @@ services: - internal server: image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.4.1} + restart: unless-stopped command: server environment: AUTHENTIK_REDIS__HOST: redis @@ -47,6 +49,7 @@ services: - .env worker: image: ${AUTHENTIK_IMAGE:-beryju/authentik}:${AUTHENTIK_TAG:-2021.4.1} + restart: unless-stopped command: worker networks: - internal @@ -66,6 +69,7 @@ services: - .env static: image: ${AUTHENTIK_IMAGE_STATIC:-beryju/authentik-static}:${AUTHENTIK_TAG:-2021.4.1} + restart: unless-stopped networks: - internal labels: @@ -81,6 +85,7 @@ services: - ./media:/usr/share/nginx/html/media traefik: image: traefik:2.3 + restart: unless-stopped command: - "--log.format=json" - "--api.insecure=true"