chore: simplify docker-only deployment workflow

This commit is contained in:
2026-03-03 08:43:30 +00:00
parent 2b9476290f
commit e888772488
9 changed files with 214 additions and 13 deletions

25
docker-compose.deploy.yml Normal file
View File

@@ -0,0 +1,25 @@
networks:
proxy:
name: proxy
external: true
services:
pdf-to-ics-web:
image: ${PDF_TO_ICS_IMAGE:-ghcr.io/webfarben/pdf_to_ics:latest}
container_name: pdf-to-ics-web
restart: unless-stopped
ports:
- "8000:8000"
networks:
- proxy
environment:
- TZ=Europe/Berlin
# Optional aktivieren für App-Login:
- WEB_AUTH_USER=${WEB_AUTH_USER:-}
- WEB_AUTH_PASSWORD=${WEB_AUTH_PASSWORD:-}
healthcheck:
test: ["CMD", "python3", "-c", "import http.client,sys;c=http.client.HTTPConnection('127.0.0.1',8000,timeout=5);c.request('GET','/');r=c.getresponse();sys.exit(0 if r.status in (200,401) else 1)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s