This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/docker-compose.monitoring.yml
2023-03-04 19:14:06 +01:00

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