Health Checks eingebaut
This commit is contained in:
parent
61dca5242e
commit
613df62e32
5 changed files with 34 additions and 1 deletions
|
|
@ -3,6 +3,11 @@ services:
|
|||
image: docker.io/telegraf:latest
|
||||
container_name: telegraf
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost:8094" ]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 12
|
||||
environment:
|
||||
- MQTT_USERNAME=${MQTT_USERNAME}
|
||||
- MQTT_PASSWORD=${MQTT_PASSWORD}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue