31 lines
811 B
Plaintext
31 lines
811 B
Plaintext
<%- | 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 |