This commit is contained in:
Mateusz Gruszczyński
2025-09-24 22:23:49 +02:00
parent 8e38576dbc
commit 7821f25b61
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@@ -9,4 +9,5 @@ db/mysql/*
db/pgsql/*
db/shopping.db
*.swp
version.txt
version.txt
deploy/varnish/default.vcl

View File

@@ -5,9 +5,9 @@ services:
#ports:
# - "${APP_PORT:-8000}:8000"
expose:
- "${APP_PORT}"
- "8000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; import sys; req = urllib.request.Request('http://localhost:${APP_PORT}/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:8000/healthcheck', headers={'X-Internal-Check': '${HEALTHCHECK_TOKEN}'}); sys.exit(0) if urllib.request.urlopen(req).read() == b'OK' else sys.exit(1)"]
interval: 30s
timeout: 10s
retries: 3