-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (75 loc) · 1.94 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
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.2'
networks:
app-tier:
driver: bridge
services:
etcd:
image: quay.io/coreos/etcd
ports:
- 2379:2379
volumes:
- etcd_data:/etcd_data
command:
- /usr/local/bin/etcd
- -name
- etcd
- --data-dir
- /etcd_data
- -advertise-client-urls
- http://etcd:2379
- -listen-client-urls
- http://0.0.0.0:2379
- -initial-advertise-peer-urls
- http://etcd:2380
- -listen-peer-urls
- http://0.0.0.0:2380
# - --quota-backend-bytes
# - '47185920' #45*1024*1024=45M
# - --auto-compaction-retention
# - '0.01'
# - -initial-cluster
# - etcd=http://etcd:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380
networks:
- app-tier
grafana:
image: grafana/grafana:7.5.7
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/dashboards/:/etc/grafana/dashboards/
- grafana_data:/var/lib/grafana
networks:
- app-tier
prometheus:
image: prom/prometheus:v2.17.1
volumes:
- ./prometheus:/etc/prometheus
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=200h'
- '--web.enable-lifecycle'
restart: unless-stopped
ports:
- 9090:9090
# expose:
# - 9090
networks:
- app-tier
redis:
image: redis:latest
expose:
- 6379
restart: always
networks:
- app-tier
volumes:
grafana_data:
prometheus_data:
etcd_data: