first commit

This commit is contained in:
2026-11-19 14:41:35 +01:00
commit df724587dc
26 changed files with 2497 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
services:
ausgaben:
build: ./app
container_name: ausgaben
restart: unless-stopped
ports:
- "${APP_PORT:-8445}:8443" # Host-Port konfigurierbar (8443 ist durch Vaultwarden belegt)
environment:
SECRET_KEY: "${SECRET_KEY:-bitte-aendern-in-produktion}"
DATABASE_PATH: /data/ausgaben.db
volumes:
- ausgaben-data:/data
- ./certs:/tls:ro # read-only: fullchain.pem + ras-dan-01.key
healthcheck:
test: ["CMD", "python", "-c", "import ssl, urllib.request; urllib.request.urlopen('https://127.0.0.1:8443/login', context=ssl._create_unverified_context())"]
interval: 30s
timeout: 5s
retries: 3
volumes:
ausgaben-data:
# Fester Name: verhindert, dass docker compose je nach Projektnamen
# (z. B. "ausgaben_ausgaben-data") bei jedem Neustart ein anderes Volume
# mountet und dadurch Daten "verschwinden" würden.
name: ausgaben-daten