From e64e67947c6f8179d2f0ad985a0f1ef45d5c6ae5 Mon Sep 17 00:00:00 2001 From: elpatron Date: Fri, 19 Jun 2026 17:44:15 +0200 Subject: [PATCH] Add Docker Compose health check for the viewer service. Co-authored-by: Cursor --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 693b623..c964522 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,12 @@ services: volumes: - viewer-data:/data restart: unless-stopped + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:5000/')"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 15s # Attach to your nginx Proxy Manager network (uncomment and set name): # networks: # - npm