add healthcheck

This commit is contained in:
= 2025-08-13 17:41:45 +02:00
parent 8d298917ee
commit e0436feaf3

View file

@ -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: