Ausgaben-WebApp: Puppet-Modul (Flask + Gunicorn + SQLite, Docker Compose)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user