This commit is contained in:
Mateusz Gruszczyński
2025-08-28 14:00:43 +02:00
parent b122c2b040
commit 80038d6fb0

View File

@@ -3,7 +3,7 @@ services:
build: . build: .
container_name: zbiorka-app container_name: zbiorka-app
ports: ports:
- "${APP_PORT:-8000}:8000" - "${APP_PORT:-8080}:8080"
healthcheck: healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; import sys; req = urllib.request.Request('http://localhost:8080/healthcheck', headers={'X-Internal-Check': '${HEALTHCHECK_TOKEN}'}); sys.exit(0) if urllib.request.urlopen(req).read() == b'OK' else sys.exit(1)"] test: ["CMD", "python", "-c", "import urllib.request; import sys; req = urllib.request.Request('http://localhost:8080/healthcheck', headers={'X-Internal-Check': '${HEALTHCHECK_TOKEN}'}); sys.exit(0) if urllib.request.urlopen(req).read() == b'OK' else sys.exit(1)"]
interval: 30s interval: 30s