mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
The version element is obsolete and unused since Compose v1 was deprecated in favour of Compose v2 in 2022, and reached end-of-life in 2023. The version element generates warning messages running Docker Compose commands when bringing up and down the test-network, which adds unnecessary noise and can be confusing for users. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
volumes:
|
|
prometheus_data: {}
|
|
grafana_storage: {}
|
|
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus:v2.32.1
|
|
container_name: prometheus
|
|
volumes:
|
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- prometheus_data:/prometheus
|
|
command:
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
- "--storage.tsdb.path=/prometheus"
|
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
|
ports:
|
|
- "9090:9090"
|
|
|
|
grafana:
|
|
image: grafana/grafana:8.3.4
|
|
container_name: grafana
|
|
user: "104"
|
|
depends_on:
|
|
- prometheus
|
|
ports:
|
|
- 3000:3000
|
|
volumes:
|
|
- grafana_storage:/var/lib/grafana
|
|
- ./grafana/provisioning/:/etc/grafana/provisioning/
|
|
env_file:
|
|
- ./grafana/config.monitoring
|
|
restart: always
|
|
|
|
cadvisor:
|
|
image: google/cadvisor:latest # gcr.io/cadvisor/cadvisor:latest for ios
|
|
privileged: true
|
|
container_name: cadvisor
|
|
volumes:
|
|
- /var/run:/var/run:rw
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
# - /cgroup:/cgroup:ro
|
|
ports:
|
|
- 8080:8080
|
|
restart: always
|
|
|
|
node-exporter:
|
|
image: prom/node-exporter:v1.3.1
|
|
container_name: node-exporter
|
|
volumes:
|
|
- /proc:/host/proc:ro
|
|
- /sys:/host/sys:ro
|
|
command:
|
|
- "--path.procfs=/host/proc"
|
|
- "--path.sysfs=/host/sys"
|
|
- --collector.filesystem.ignored-mount-points
|
|
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
|
|
ports:
|
|
- 9100:9100
|
|
restart: always
|
|
|
|
networks:
|
|
default:
|
|
external: true
|
|
name: fabric_test
|