From 60137256d47fe141fb5504c6575b4f3c9b25051a Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 17 Aug 2022 11:34:00 +0200 Subject: [PATCH] try tuned deploy config 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 --- compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compose.yml b/compose.yml index 1c0aa3f..1ba11d7 100644 --- a/compose.yml +++ b/compose.yml @@ -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"