Add Docker Compose health check for the viewer service.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-19 17:44:15 +02:00
parent c1775e1857
commit e64e67947c
+6
View File
@@ -14,6 +14,12 @@ services:
volumes: volumes:
- viewer-data:/data - viewer-data:/data
restart: unless-stopped 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): # Attach to your nginx Proxy Manager network (uncomment and set name):
# networks: # networks:
# - npm # - npm