prometheus/docker-compose.yml

39 lines
729 B
YAML

prometheus:
build: "prom/"
ports:
- "9090:9090"
expose:
- "9090"
volumes:
- "$PWD/prometheus.yml:/etc/prometheus/prometheus.yml"
exporter:
image: "prom/container-exporter"
volumes:
- /sys/fs/cgroup:/cgroup
- /var/run/docker.sock:/var/run/docker.sock prom/container-exporter
ports:
- "9104:9104"
expose:
- "9104"
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"
ports:
- "3000:3000"
expose:
- "3000"
volumes:
- /tmp/prom:/tmp/prom
environment:
- "DATABASE_URL=sqlite3:/tmp/prom/file.sqlite3"