This commit is contained in:
Mateusz Gruszczyński
2026-07-13 13:27:56 +02:00
parent bd562b3da6
commit bfbc29effe
3 changed files with 38 additions and 14 deletions
+17 -3
View File
@@ -1,12 +1,26 @@
services:
web:
build: .
build:
context: .
env_file:
- .env
ports:
- "${APP_HOST_PORT:-8000}:${APP_PORT:-8000}"
restart: unless-stopped
init: true
stop_grace_period: 30s
volumes:
- .:/app
- ./instance:/app/instance
- ./data:/app/data
healthcheck:
test:
- CMD-SHELL
- >
python -c "import os, urllib.request;
urllib.request.urlopen(
'http://127.0.0.1:' + os.getenv('APP_PORT', '8000') + '/health',
timeout=5)"
interval: 30s
timeout: 6s
retries: 3
start_period: 20s