This commit is contained in:
hubobel 2026-01-12 16:30:16 +01:00
parent 9b100825e7
commit d7e2e1a512
14 changed files with 190 additions and 1 deletions

View file

@ -0,0 +1,19 @@
services:
telegraf:
image: docker.io/telegraf:latest
container_name: telegraf
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pidof telegraf >/dev/null 2>&1 || exit 1" ]
interval: 10s
timeout: 3s
retries: 12
environment:
- MQTT_USERNAME=${MQTT_USERNAME}
- MQTT_PASSWORD=${MQTT_PASSWORD}
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
networks:
default:
name: mqtt5-network
external: true