34 lines
856 B
YAML
34 lines
856 B
YAML
name: household-dashboard
|
|
services:
|
|
dashboard:
|
|
build: .
|
|
restart: unless-stopped
|
|
init: true
|
|
mem_limit: 512m
|
|
cpus: 1.0
|
|
pids_limit: 128
|
|
stop_grace_period: 25s
|
|
environment:
|
|
TZ: America/Chicago
|
|
CONFIG_FILE: /run/secrets/dashboard.json
|
|
ports:
|
|
- "8124:8080"
|
|
volumes:
|
|
- type: bind
|
|
source: /etc/home-ops/household-dashboard.json
|
|
target: /run/secrets/dashboard.json
|
|
read_only: true
|
|
bind:
|
|
create_host_path: false
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:size=16m
|
|
cap_drop: [ALL]
|
|
security_opt: [no-new-privileges:true]
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health/live', timeout=5)"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|