try tuned deploy config
continuous-integration/drone/push Build is failing Details

the web container keeps dying randomly due to the app upstream
dissapearing for some reason... i am trying to use this config to make
sure the web service can handle this gracefully and restart...

See https://docs.coopcloud.tech/maintainers/handbook/#tuning-deploy-configs
This commit is contained in:
decentral1se 2022-08-17 11:34:00 +02:00
parent 6e52231d18
commit 60137256d4
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,13 @@ services:
deploy:
restart_policy:
condition: on-failure
update_config:
failure_action: rollback
order: start-first
rollback_config:
order: start-first
restart_policy:
max_attempts: 10
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"