From 8d909496f4c5d7855c5430595e34726c40d7e809 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Sun, 10 May 2026 22:38:36 -0700 Subject: [PATCH] changed the container name and added healthcheck --- IT-Tools/docker-compose.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/IT-Tools/docker-compose.yaml b/IT-Tools/docker-compose.yaml index cee0d7c..3b8b87a 100644 --- a/IT-Tools/docker-compose.yaml +++ b/IT-Tools/docker-compose.yaml @@ -1,11 +1,17 @@ services: app: image: corentinth/it-tools:latest - container_name: ittools + container_name: it-tools ports: - ${IT_TOOLS_PORT}:80 deploy: resources: limits: memory: 512m + healthcheck: + test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1/ || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 15s restart: unless-stopped \ No newline at end of file