add compose.yaml
This commit is contained in:
parent
21f913404d
commit
3298f9b6a9
1 changed files with 35 additions and 0 deletions
35
compose.yaml
Normal file
35
compose.yaml
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue