From 827affcbbf0f0cb5dced5f2fe65ccec8c63c2385 Mon Sep 17 00:00:00 2001 From: erebion Date: Thu, 16 Nov 2023 10:55:36 +0100 Subject: [PATCH] More time for startup --- .../templates/authentik-server-docker.service.j2 | 2 +- .../templates/authentik-worker-docker.service.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/authentik_docker/templates/authentik-server-docker.service.j2 b/roles/authentik_docker/templates/authentik-server-docker.service.j2 index ec4d38f..14ba649 100644 --- a/roles/authentik_docker/templates/authentik-server-docker.service.j2 +++ b/roles/authentik_docker/templates/authentik-server-docker.service.j2 @@ -12,7 +12,7 @@ ExecStart=/usr/bin/docker run --rm --name {{ container_names.authentik.server }} -v {{ docker_volumes_dir }}/authentik/media:/media \ -v {{ docker_volumes_dir }}/authentik/custom-templates:/templates \ ghcr.io/goauthentik/server:{{ version.authentik }} server -ExecStartPost=/usr/bin/bash -c "/bin/sleep 45 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.server }}" +ExecStartPost=/usr/bin/bash -c "/bin/sleep 120 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.server }}" ExecStop=-/usr/bin/docker stop {{ container_names.authentik.server }} Restart=always RestartSec=60s diff --git a/roles/authentik_docker/templates/authentik-worker-docker.service.j2 b/roles/authentik_docker/templates/authentik-worker-docker.service.j2 index 2c848ff..dbebef4 100644 --- a/roles/authentik_docker/templates/authentik-worker-docker.service.j2 +++ b/roles/authentik_docker/templates/authentik-worker-docker.service.j2 @@ -14,7 +14,7 @@ ExecStart=/usr/bin/docker run --rm --name {{ container_names.authentik.worker }} -v {{ docker_volumes_dir }}/authentik/certs:/certs \ -v {{ docker_volumes_dir }}/authentik/custom-templates:/templates \ ghcr.io/goauthentik/server:{{ version.authentik }} worker -ExecStartPost=/usr/bin/bash -c "/bin/sleep 45 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.worker }}" +ExecStartPost=/usr/bin/bash -c "/bin/sleep 120 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.worker }}" ExecStop=-/usr/bin/docker stop {{ container_names.authentik.worker }} Restart=always RestartSec=60s