-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
68 lines (64 loc) · 1.53 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.8'
networks:
monitoring:
driver: bridge
volumes:
grafana_data: {}
prometheus_data: {}
services:
exporter:
build: .
ports:
- "8000:8000"
- "8001:8001"
expose:
- 8080
networks:
- monitoring
volumes:
- type: bind
source: ${PWD}/${CONFIG_FILE_PATH}
target: /config/config.yml
- type: bind
source: ${PWD}/${VALIDATION_FILE_PATH}
target: /config/validation.yml
prometheus:
image: prom/prometheus:latest
logging:
driver: none
container_name: prometheus
restart: unless-stopped
volumes:
- prometheus_data:/prometheus
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
ports:
- "9090:9090"
expose:
- 9090
networks:
- monitoring
grafana:
logging:
driver: none
image: grafana/grafana-enterprise:8.4.1
container_name: grafana
volumes:
- grafana_data:/var/lib/grafana
- ./config/grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
restart: unless-stopped
ports:
- "3000:3000"
expose:
- 3000
networks:
- monitoring