From 693e7ab91d9e23317c12c8368a33cb94cd419785 Mon Sep 17 00:00:00 2001 From: Paul Crossley Date: Tue, 23 Jul 2024 16:38:04 +0100 Subject: [PATCH] Add healthcheck configuration to docker-compose.yml --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ceb5c4d6..f601991b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,11 @@ services: published: 443 protocol: tcp mode: ingress + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost/"] + interval: 1m + timeout: 10s + retries: 3 volumes: - caddy:/data networks: