init infrait

This commit is contained in:
2026-02-12 18:47:12 +03:00
commit 7a6ecf6281
18 changed files with 1389 additions and 0 deletions

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
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