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:
parent
13d9607e61
commit
ee35505ddd
2 changed files with 2 additions and 2 deletions
|
@ -5,6 +5,7 @@ Requires=docker.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=-/usr/bin/docker rm --force {{ container_names.authentik.server }}
|
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 }} \
|
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 \
|
--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 \
|
--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 }}
|
ExecStop=-/usr/bin/docker stop {{ container_names.authentik.server }}
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=60s
|
RestartSec=60s
|
||||||
TimeoutRestartSec=60s
|
|
||||||
Type=exec
|
Type=exec
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -5,6 +5,7 @@ Requires=docker.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=-/usr/bin/docker rm --force {{ container_names.authentik.worker }}
|
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 \
|
ExecStart=/usr/bin/docker run --rm --name {{ container_names.authentik.worker }} --user root \
|
||||||
--network authentik_net --expose 9000 --expose 9443 \
|
--network authentik_net --expose 9000 --expose 9443 \
|
||||||
--env-file {{ docker_volumes_dir }}/authentik/authentik.env \
|
--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 }}
|
ExecStop=-/usr/bin/docker stop {{ container_names.authentik.worker }}
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=60s
|
RestartSec=60s
|
||||||
TimeoutRestartSec=60s
|
|
||||||
Type=exec
|
Type=exec
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in a new issue