home-monitoring/compose.yaml
2026-07-31 09:17:23 +02:00

35 lines
929 B
YAML

services:
home-monitor:
build: .
container_name: home-monitor
restart: unless-stopped
environment:
TZ: Europe/Berlin
MQTT_HOST: 10.10.1.1
MQTT_PORT: "1883"
MQTT_TOPICS: "#,$$SYS/#"
INFLUX_URL: http://influxdb:8086
INFLUX_ORG: influx.sascha-lutz.de
INFLUX_BUCKET: telegraf
INFLUX_TOKEN: ${INFLUX_TOKEN}
BUTLER_URL: http://10.4.1.116:8888
BUTLER_TOKEN: ${BUTLER_TOKEN}
WRITE_INTERVAL: "15"
TOPIC_STATS_INTERVAL: "300"
HA_POLL_INTERVAL: "60"
MAX_TOPICS: "500"
HEALTH_PORT: "9199"
expose:
- "9199"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:9199/health', timeout=3)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
networks:
- monitoring_network
networks:
monitoring_network:
external: true