From ae573658f6ecc74c72b176ec909616ca5ed75b59 Mon Sep 17 00:00:00 2001 From: erebion Date: Fri, 15 Sep 2023 21:53:56 +0200 Subject: [PATCH] Increate time before connecting to network to give Authentik more time to start up --- .../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 bf2c513..217152d 100644 --- a/roles/authentik_docker/templates/authentik-server-docker.service.j2 +++ b/roles/authentik_docker/templates/authentik-server-docker.service.j2 @@ -11,7 +11,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 10 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.server }}" +ExecStartPost=/usr/bin/bash -c "/bin/sleep 45 && /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 b2323d4..c61262f 100644 --- a/roles/authentik_docker/templates/authentik-worker-docker.service.j2 +++ b/roles/authentik_docker/templates/authentik-worker-docker.service.j2 @@ -13,7 +13,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 10 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.worker }}" +ExecStartPost=/usr/bin/bash -c "/bin/sleep 45 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.worker }}" ExecStop=-/usr/bin/docker stop {{ container_names.authentik.worker }} Restart=always RestartSec=60s