Give Authentik more time to start before we consider it failed

This commit is contained in:
erebion 2023-09-15 21:37:11 +02:00
parent 6cc100afcc
commit e6117ad194
2 changed files with 4 additions and 2 deletions

View file

@ -14,7 +14,8 @@ ExecStart=/usr/bin/docker run --rm --name {{ container_names.authentik.server }}
ExecStartPost=/usr/bin/bash -c "/bin/sleep 10 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.server }}"
ExecStop=/usr/bin/docker stop {{ container_names.authentik.server }}
Restart=always
RestartSec=15s
RestartSec=60s
TimeoutRestartSec=60s
Type=exec
[Install]

View file

@ -16,7 +16,8 @@ ExecStart=/usr/bin/docker run --rm --name {{ container_names.authentik.worker }}
ExecStartPost=/usr/bin/bash -c "/bin/sleep 10 && /usr/bin/docker network connect nginx_net {{ container_names.authentik.worker }}"
ExecStop=/usr/bin/docker stop {{ container_names.authentik.worker }}
Restart=always
RestartSec=15s
RestartSec=60s
TimeoutRestartSec=60s
Type=exec
[Install]