-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
133 lines (133 loc) · 3.15 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: "3.5"
services:
m3db_seed:
networks:
- backend
image: quay.io/m3db/m3dbnode:latest
volumes:
- "./config/m3/m3dbnode.yml:/etc/m3dbnode/m3dbnode.yml"
- "./config/m3/schema.proto:/etc/m3dbnode/schema.proto"
environment:
- M3DB_HOST_ID=m3db_seed
expose:
- "2379"
- "9002"
- "9003"
- "9004"
ports:
- "0.0.0.0:2379:2379"
- "0.0.0.0:9002:9002"
- "0.0.0.0:9003:9003"
- "0.0.0.0:9004:9004"
m3db_data01:
networks:
- backend
image: quay.io/m3db/m3dbnode:latest
volumes:
- "./config/m3/m3dbnode.yml:/etc/m3dbnode/m3dbnode.yml"
- "./config/m3/schema.proto:/etc/m3dbnode/schema.proto"
environment:
- M3DB_HOST_ID=m3db_data01
depends_on:
- "m3db_seed"
m3db_data02:
networks:
- backend
image: quay.io/m3db/m3dbnode:latest
volumes:
- "./config/m3/m3dbnode.yml:/etc/m3dbnode/m3dbnode.yml"
- "./config/m3/schema.proto:/etc/m3dbnode/schema.proto"
environment:
- M3DB_HOST_ID=m3db_data02
depends_on:
- "m3db_seed"
prometheus01:
expose:
- "9090"
ports:
- "0.0.0.0:9090:9090"
networks:
- backend
image: prom/prometheus:latest
volumes:
- "./config/prometheus/prometheus01.yml:/etc/prometheus/prometheus.yml"
depends_on:
- "m3query01"
prometheus02:
expose:
- "9091"
ports:
- "0.0.0.0:9091:9090"
networks:
- backend
image: prom/prometheus:latest
volumes:
- "./config/prometheus/prometheus02.yml:/etc/prometheus/prometheus.yml"
depends_on:
- "m3query01"
m3coordinator01:
expose:
- "7201"
- "7203"
- "7204"
- "7507"
ports:
- "0.0.0.0:7201:7201"
- "0.0.0.0:7203:7203"
- "0.0.0.0:7204:7204"
- "0.0.0.0:7507:7507"
networks:
- backend
image: quay.io/m3db/m3coordinator:latest
volumes:
- "./config/m3/m3coordinator.yml:/etc/m3coordinator/m3coordinator.yml"
- "./config/m3/schema.proto:/etc/m3coordinator/schema.proto"
depends_on:
- "m3db_seed"
provisioner:
environment:
- USE_MULTI_DB_NODES=true
- USE_MULTI_PROMETHEUS_NODES=true
networks:
- backend
image: dwdraju/alpine-curl-jq:latest
depends_on:
- "m3coordinator01"
volumes:
- "./bin/provision.sh:/tmp/provision.sh"
entrypoint: /tmp/provision.sh
m3query01:
expose:
- "7201"
- "7203"
- "7204"
- "7507"
ports:
- "0.0.0.0:7221:7201"
- "0.0.0.0:7223:7203"
- "0.0.0.0:7224:7204"
- "0.0.0.0:7527:7507"
networks:
- backend
image: quay.io/m3db/m3query:latest
volumes:
- "./config/m3/m3query.yml:/etc/m3query/m3query.yml"
depends_on:
- "provisioner"
grafana:
expose:
- "3000"
ports:
- "0.0.0.0:3000:3000"
networks:
- backend
image: grafana/grafana:latest
volumes:
- "./config/grafana/provisioning/:/etc/grafana/provisioning/"
- "./config/grafana/dashboards/:/var/lib/grafana/dashboards/"
environment:
- GF_LOG_LEVEL=error
depends_on:
- "m3query01"
networks:
backend: