More time for startup

This commit is contained in:
erebion 2023-11-16 10:55:36 +01:00
parent ee35505ddd
commit 827affcbbf
2 changed files with 2 additions and 2 deletions

View file

@ -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/media:/media \
-v {{ docker_volumes_dir }}/authentik/custom-templates:/templates \ -v {{ docker_volumes_dir }}/authentik/custom-templates:/templates \
ghcr.io/goauthentik/server:{{ version.authentik }} server 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 }} ExecStop=-/usr/bin/docker stop {{ container_names.authentik.server }}
Restart=always Restart=always
RestartSec=60s RestartSec=60s

View file

@ -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/certs:/certs \
-v {{ docker_volumes_dir }}/authentik/custom-templates:/templates \ -v {{ docker_volumes_dir }}/authentik/custom-templates:/templates \
ghcr.io/goauthentik/server:{{ version.authentik }} worker 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 }} ExecStop=-/usr/bin/docker stop {{ container_names.authentik.worker }}
Restart=always Restart=always
RestartSec=60s RestartSec=60s