Ausgaben-WebApp: Puppet-Modul (Flask + Gunicorn + SQLite, Docker Compose)

This commit is contained in:
2026-11-23 14:22:12 +01:00
commit dc47c8e6f8
28 changed files with 2454 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<%- | String $config_path,
String $tz,
Integer $app_port,
String $secret_key,
String $crt_name,
String $key_name,
| -%>
services:
ausgaben:
build:
context: <%= $config_path %>/app
container_name: ausgaben
environment:
- TZ=<%= $tz %>
- SECRET_KEY=<%= $secret_key %>
- DATABASE_PATH=/data/ausgaben.db
volumes:
- <%= $config_path %>/certs:/tls:ro
- ausgaben-daten:/data
ports:
- "<%= $app_port %>:8443"
restart: unless-stopped
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-daten:
name: ausgaben-daten