From 405b5c53854d57114e47aed64760a4b3eeeef00d Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 5 Nov 2024 22:27:53 +0100 Subject: [PATCH] authentik: maybe don't try to detach the container for now seems oneshot won't work properly, even without Restart=always --- roles/authentik/templates/authentik.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/authentik/templates/authentik.service.j2 b/roles/authentik/templates/authentik.service.j2 index e6172b3..7968a4f 100644 --- a/roles/authentik/templates/authentik.service.j2 +++ b/roles/authentik/templates/authentik.service.j2 @@ -5,7 +5,7 @@ After=docker.service Before=nginx.service [Service] -Type=oneshot +Type=simple User=authentik Group=authentik @@ -21,7 +21,7 @@ ExecStartPre=/usr/bin/docker-compose down -v ExecStartPre=-/usr/bin/docker-compose pull --quiet # Compose up -ExecStart=/usr/bin/docker-compose up -d +ExecStart=/usr/bin/docker-compose up # Compose down, remove containers and volumes ExecStop=/usr/bin/docker-compose down -v