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