From e0436feaf3be70c25d2d3e7f281762cbd8ecdbcb Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 13 Aug 2025 17:41:45 +0200 Subject: [PATCH] add healthcheck --- .../templates/docker-compose.yml.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ansible/roles/deploy_container_excalidraw/templates/docker-compose.yml.j2 b/ansible/roles/deploy_container_excalidraw/templates/docker-compose.yml.j2 index 839a172..acb8f16 100644 --- a/ansible/roles/deploy_container_excalidraw/templates/docker-compose.yml.j2 +++ b/ansible/roles/deploy_container_excalidraw/templates/docker-compose.yml.j2 @@ -5,8 +5,6 @@ services: container_name: excalidraw restart: on-failure stdin_open: true - healthcheck: - disable: true environment: - NODE_ENV=development networks: @@ -28,6 +26,12 @@ services: - "traefik.http.routers.excalidraw-secure.tls=true" - "traefik.http.routers.excalidraw-secure.service=excalidraw" - "traefik.http.services.excalidraw.loadbalancer.server.port=80" + healthcheck: + test: ["CMD-SHELL", "curl -fsS -m 5 http://127.0.0.1/ >/dev/null || exit 1"] + interval: 30s + timeout: 10s + retries: 5 + start_period: 30s networks: traefik: