35 lines
628 B
YAML
35 lines
628 B
YAML
version: '2.2'
|
|
|
|
networks:
|
|
metrics:
|
|
|
|
services:
|
|
|
|
prometheus:
|
|
build:
|
|
context: ./custom/prometheus
|
|
networks:
|
|
- metrics
|
|
extra_hosts:
|
|
- "docker.host:host-gateway"
|
|
|
|
prom-blackbox:
|
|
image: prom/blackbox-exporter:latest
|
|
networks:
|
|
- metrics
|
|
- internal
|
|
|
|
## THIS CONTANIER IS AVAILABLE ON THE HOST ##
|
|
node-exporter:
|
|
image: quay.io/prometheus/node-exporter:latest
|
|
container_name: node-exporter
|
|
command:
|
|
- '--path.rootfs=/host'
|
|
network_mode: host
|
|
pid: host
|
|
restart: unless-stopped
|
|
volumes:
|
|
- '/:/host:ro,rslave'
|
|
cap_add:
|
|
- SYS_TIME
|
|
|