diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..96ab331 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,35 @@ +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