-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
69 lines (63 loc) · 1.46 KB
/
docker-compose.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.2'
services:
postgresql:
image: postgres_with_provsql_and_tpch_4:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tpch
ports:
- "5434:5434"
volumes:
- pgdata:/var/lib/postgresql/data
- ./data:/data
networks:
- scaphandre-network
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
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:
pgdata:
networks:
scaphandre-network:
driver: bridge
ipam:
config:
- subnet: 192.168.33.0/24