Increate time before connecting to network to give Authentik more time to start up
This commit is contained in:
parent
8b93465483
commit
ae573658f6
2 changed files with 2 additions and 2 deletions
|
@ -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/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 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 }}
|
ExecStop=-/usr/bin/docker stop {{ container_names.authentik.server }}
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=60s
|
RestartSec=60s
|
||||||
|
|
|
@ -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/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 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 }}
|
ExecStop=-/usr/bin/docker stop {{ container_names.authentik.worker }}
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=60s
|
RestartSec=60s
|
||||||
|
|
Loading…
Reference in a new issue