jean-cloud-services/old_services/node_metrics/docker-compose.yml
2024-01-02 17:50:14 +01:00

40 lines
973 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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