generated from coop-cloud/example
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:
@ -32,6 +32,13 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
update_config:
|
||||||
|
failure_action: rollback
|
||||||
|
order: start-first
|
||||||
|
rollback_config:
|
||||||
|
order: start-first
|
||||||
|
restart_policy:
|
||||||
|
max_attempts: 10
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||||
|
Reference in New Issue
Block a user