Split core and prometheus compose files by service

This commit is contained in:
beatz174-bit
2026-04-13 10:22:42 +10:00
parent cfbefed2e3
commit ff2d323309
13 changed files with 338 additions and 385 deletions
+24
View File
@@ -0,0 +1,24 @@
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