prometheus/docker-compose.yml

35 lines
770 B
YAML

prometheus:
image: "prom/prometheus"
expose:
- "9090"
environment:
- "config.file=documentation/examples/prometheus.yml"
exporter:
image: "prom/container-exporter"
volumes:
- "/sys/fs/cgroup:/cgroup"
- "/var/run/docker.sock:/var/run/docker.sock prom/container-exporter"
expose:
- "9104"
command: "-storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=influxsrv:8086"
sqlite3:
image: "prom/promdash"
command:
- "./bin/rake db:migrate"
volumes:
- "/tmp/prom:/tmp/prom"
environment:
- "DATABASE_URL=sqlite3:/tmp/prom/file.sqlite3"
promdash:
image: "prom/promdash"
expose:
- "3000"
volumes:
- "/tmp/prom:/tmp/prom"
environment:
- "DATABASE_URL=sqlite3:/tmp/prom/file.sqlite3"