initial server version

This commit is contained in:
root
2026-02-12 16:00:15 +00:00
commit e5195dd9c5
13 changed files with 1375 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