25 lines
664 B
YAML
25 lines
664 B
YAML
services:
|
|
telegraf:
|
|
profiles: ["monitoring","all","prometheus"]
|
|
image: telegraf:latest
|
|
container_name: telegraf
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- docker-socket-proxy
|
|
# cap_drop:
|
|
# - ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
volumes:
|
|
- ${PROJECT_ROOT}/monitoring/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
|
- ${PROJECT_ROOT}/monitoring/node-red/data:/var/log/node-red:ro
|
|
networks:
|
|
# - edge
|
|
- monitor
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -f http://localhost:9273/metrics || exit 1"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|