Files
infrait/docker-compose.yml
2026-02-12 18:47:12 +03:00

21 lines
510 B
YAML

version: "3.9"
services:
web:
build: .
container_name: infrait-web
restart: unless-stopped
ports:
- "4545:4545"
volumes:
- ./data:/app/data
- ./static/img:/app/static/img
environment:
- SECRET_KEY=${SECRET_KEY:-change-this-in-prod}
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:4545/health', timeout=3)"]
interval: 20s
timeout: 5s
retries: 5
start_period: 20s