1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
version: '3.2'
services:
grafana:
build:
context: ./grafana
environment:
GF_SECURITY_ADMIN_PASSWORD: "secret"
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: "/var/lib/grafana/dashboards/sample/sample-dashboard.json"
depends_on:
- prometheus
ports:
- "3000:3000"
networks:
- scaphandre-network
volumes:
- type: bind
source: "./dashboards/sample-dashboard.json"
target: "/var/lib/grafana/dashboards/sample/sample-dashboard.json"
scaphandre:
image: hubblo/scaphandre
privileged: true
ports:
- "8080:8080"
volumes:
- type: bind
source: /proc
target: /proc
- type: bind
source: /sys/class/powercap
target: /sys/class/powercap
command: ["prometheus"]
networks:
- scaphandre-network
prometheus:
build:
context: ./prom
ports:
- "9090:9090"
volumes:
- promdata-scaphandre:/prometheus
networks:
- scaphandre-network
volumes:
promdata-scaphandre:
networks:
scaphandre-network:
driver: bridge
ipam:
config:
- subnet: 192.168.33.0/24
|