-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
49 lines (45 loc) · 899 Bytes
/
docker-compose.yml
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
version: '3.6'
services:
prometheus:
image: prom/prometheus:v1.8.2
volumes:
- ./prometheus/:/etc/prometheus/
- ./data/prometheus/:/prometheus
command:
- '-config.file=/etc/prometheus/prometheus.yml'
- '-storage.local.path=/prometheus'
expose:
- 9090
ports:
- 9090:9090
links:
- cadvisor:cadvisor
depends_on:
- cadvisor
- app
cadvisor:
image: google/cadvisor:v0.27.3
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
ports:
- 8090:8080
expose:
- 8090
grafana:
image: grafana/grafana:4.6.3
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./data/grafana/:/var/lib/grafana
app:
build: .
ports:
- 8080:8080
- 8081:8081
volumes:
- .:/code