From 1572a1fdde0170d4e8a9f78f4f39171616ceea7f Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Thu, 1 Oct 2020 20:33:23 +0200 Subject: [PATCH] Add healthcheck & bump compose version --- compose.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index 8e5876b..b2ff7af 100644 --- a/compose.yml +++ b/compose.yml @@ -1,4 +1,4 @@ -version: '3.3' +version: '3.8' services: app: @@ -11,7 +11,16 @@ services: networks: - net - proxy + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m deploy: + update_config: + failure_action: rollback + order: start-first resources: limits: cpus: '0.50'