jean-cloud-services/old_services/node_metrics/docker-compose.yml

40 lines
973 B
YAML
Raw Normal View History

2024-01-02 16:50:14 +00:00
version: '3'
services:
# Port 9100
node-exporter:
image: quay.io/prometheus/node-exporter
volumes:
#- /:/host:ro,rslave # Cest vraiment un peu nul
- /proc:/host/proc:ro,rslave
- /sys:/host/sys:ro,rslave
- /dev:/host/dev:ro,rslave
#command: ["path.rootfs=/host"]
networks:
- ingress
# Port 8081
docker-exporter:
image: cdewitt/docker-stats-exporter
networks:
- ingress
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Pas besoin vu quon a le reste et que USE_PSEUDO_FILES est à True. BEN SI…………
- /sys/fs/cgroup:/rootfs/sys/fs/cgroup:ro
- /proc:/rootfs/proc:ro
environment:
PROC_DIRECTORY: /rootfs/proc
CGROUP_DIRECTORY: /rootfs/sys/fs/cgroup
USE_PSEUDO_FILES: "True"
docker-metrics-proxy:
image: nginx
volumes:
- /var/run/docker-metrics.sock:/var/run/docker-metrics.sock
networks:
ingress:
external: true