From 0c15c0b647e0f0e4c5f197c7aa49ecd482c5a409 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 30 Mar 2021 21:51:55 +0200 Subject: [PATCH] Add healthcheck --- compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compose.yml b/compose.yml index f1c2379..09674bb 100644 --- a/compose.yml +++ b/compose.yml @@ -6,6 +6,12 @@ services: image: "decentral1se/cloud.autonomic.zone:latest" networks: - proxy + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8000"] + interval: 10s + timeout: 10s + retries: 10 + start_period: 15s deploy: update_config: failure_action: rollback