-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 962 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
---
services:
prometheus:
hostname: prometheus
container_name: prometheus
image: prom/prometheus:latest
ports:
- 9090:9090
volumes:
- ./docker/prometheus/:/etc/prometheus/
- data-prometheus:/prometheus
grafana:
image: grafana/grafana
hostname: grafana
container_name: grafana
depends_on:
- prometheus
logging:
driver: local
volumes:
- data-grafana:/var/lib/grafana
- ./docker/grafana/provisioning/:/etc/grafana/provisioning/
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_USERS_ALLOW_SIGN_UP: false
GF_INSTALL_PLUGINS: grafana-piechart-panel
ports:
- 3000:3000
cc_heartbeat:
build: ./
hostname: cc_heartbeat
container_name: cc_heartbeat
logging:
driver: local
volumes:
- ./:/home/heartbeat/
ports:
- 8080:8080
volumes:
data-prometheus:
data-grafana: