Files
simple-docker-metrics/compose.yml
T
2025-12-14 19:32:37 +01:00

36 lines
885 B
YAML

services:
simple-docker-metrics:
build:
context: ./src
dockerfile: Containerfile
container_name: simple-docker-metrics
user: "0:0"
environment:
- GRAPHITE_ENDPOINT=graphite:2003
- GRAPHITE_PREFIX=docker-metrics
- INTERVAL_SECONDS=10
- DEBUG=false
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
depends_on:
- graphite
graphite:
image: graphiteapp/graphite-statsd:latest
container_name: graphite
ports:
- "80:80" # Graphite web interface
- "2003:2003" # Carbon plaintext
- "2004:2004" # Carbon pickle
- "8125:8125/udp" # StatsD
- "8126:8126" # StatsD admin
restart: unless-stopped
volumes:
- graphite-data:/opt/graphite/storage
- graphite-config:/opt/graphite/conf
volumes:
graphite-data:
graphite-config: