This will avoid timeout issues during startup by first loading the images and not having a timeout defined at all

This commit is contained in:
erebion 2023-11-16 10:48:52 +01:00
parent 13d9607e61
commit ee35505ddd
2 changed files with 2 additions and 2 deletions

View file

@ -5,6 +5,7 @@ Requires=docker.service
[Service]
ExecStartPre=-/usr/bin/docker rm --force {{ container_names.authentik.server }}
ExecStartPre=-/usr/bin/docker pull ghcr.io/goauthentik/server:{{ version.authentik }}
ExecStart=/usr/bin/docker run --rm --name {{ container_names.authentik.server }} \
--network authentik_net --publish 127.0.0.1:9000:9000 --publish 127.0.0.1:9443:9443 \
--env-file {{ docker_volumes_dir }}/authentik/authentik.env \
@ -15,7 +16,6 @@ ExecStartPost=/usr/bin/bash -c "/bin/sleep 45 && /usr/bin/docker network connect
ExecStop=-/usr/bin/docker stop {{ container_names.authentik.server }}
Restart=always
RestartSec=60s
TimeoutRestartSec=60s
Type=exec
[Install]

View file

@ -5,6 +5,7 @@ Requires=docker.service
[Service]
ExecStartPre=-/usr/bin/docker rm --force {{ container_names.authentik.worker }}
ExecStartPre=-/usr/bin/docker pull ghcr.io/goauthentik/server:{{ version.authentik }}
ExecStart=/usr/bin/docker run --rm --name {{ container_names.authentik.worker }} --user root \
--network authentik_net --expose 9000 --expose 9443 \
--env-file {{ docker_volumes_dir }}/authentik/authentik.env \
@ -17,7 +18,6 @@ ExecStartPost=/usr/bin/bash -c "/bin/sleep 45 && /usr/bin/docker network connect
ExecStop=-/usr/bin/docker stop {{ container_names.authentik.worker }}
Restart=always
RestartSec=60s
TimeoutRestartSec=60s
Type=exec
[Install]