From 4912d1f9e8b64d9c1a58b70b8f94b341992c9e5d Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 9 Sep 2022 13:21:44 +0200 Subject: [PATCH] compose: add healthcheck --- docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index c7d10b0..073ece8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,13 @@ services: volumes: # So that traefik can listen to the Docker events - /var/run/docker.sock:/var/run/docker.sock:ro + healthcheck: + # DON'T + # test: "/usr/bin/wget -q -Y off http://localhost:80/about -O /dev/null > /dev/null 2>&1" + # DO: + test: "/usr/bin/wget -q -Y off http://localhost:80/about -O /dev/null 2>&-" + interval: 10s + retries: 20 homepage: build: