mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
31 lines
609 B
YAML
31 lines
609 B
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
prometheus:
|
|
build: ../prom
|
|
image: 127.0.0.1:5000/prom
|
|
ports:
|
|
- "9090:9090"
|
|
|
|
node:
|
|
image: prom/node-exporter
|
|
command: --path.procfs /host/proc --path.sysfs /host/proc --collector.filesystem.ignored-mount-points "^(sys|proc|dev|host|etc)($$|/)"
|
|
deploy:
|
|
mode: global
|
|
volumes:
|
|
- "/proc:/host/proc"
|
|
- "/sys:/host/sys"
|
|
- "/:/rootfs"
|
|
|
|
cadvisor:
|
|
image: google/cadvisor
|
|
deploy:
|
|
mode: global
|
|
volumes:
|
|
- "/:/rootfs"
|
|
- "/var/run:/var/run"
|
|
- "/sys:/sys"
|
|
- "/var/lib/docker:/var/lib/docker"
|
|
|