-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
70 lines (63 loc) · 1.5 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
70
version: '3.0'
services:
redis:
image: redis:${REDIS_TAG}
restart: unless-stopped
volumes:
- redis_data:/data
command: ["redis-server", "--appendonly", "yes"]
networks:
- back
redis-exporter:
image: oliver006/redis_exporter:${REDIS_EXPORTER_TAG}
restart: unless-stopped
command: ["--redis.addr", "redis://redis:6379"]
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
depends_on:
- "redis"
networks:
- back
- monitoring
prometheus:
image: prom/prometheus:${PROMETHEUS_TAG}
restart: unless-stopped
volumes:
- prometheus_data:/prometheus
- ./prometheus/:/etc/prometheus/:ro
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
depends_on:
- "redis-exporter"
networks:
- monitoring
- front
grafana:
image: grafana/grafana:${GRAFANA_TAG}
restart: unless-stopped
user: "472"
depends_on:
- prometheus
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/:ro
env_file:
- ./grafana/config.monitoring
networks:
- front
ports:
- 3000:3000
networks:
back:
monitoring:
front:
volumes:
redis_data: {}
prometheus_data: {}
grafana_data: {}