This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
157 lines (145 loc) · 2.93 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
haproxy:
image: banno/graphite-haproxy
net: host
web:
image: banno/graphite-web
environment:
CLUSTER_SERVERS: weba:80,webb:80
ports:
- "8080:80"
links:
- weba
- webb
relay:
image: banno/carbon-relay
ports:
- "3003:2003"
- "3004:2004"
environment:
RELAY_METHOD: consistent-hashing
DESTINATIONS: relaya:2104, relayb:2204
links:
- relaya
- relayb
weba:
image: banno/graphite-web
volumes_from:
- whisper
environment:
CARBONLINK_HOSTS: cachea1:7012,cachea2:7022
WHISPER_DIR: /opt/graphite/storage/whispera
ports:
- "8180:80"
links:
- cachea1
- cachea2
relaya:
image: banno/carbon-relay
ports:
- "2103:2103"
- "2104:2104"
environment:
LINE_RECEIVER_PORT: 2103
PICKLE_RECEIVER_PORT: 2104
RELAY_METHOD: consistent-hashing
DESTINATIONS: cachea1:2014:a1, cachea2:2024:a2
links:
- cachea1
- cachea2
cachea1:
image: banno/carbon-cache
volumes_from:
- whisper
ports:
- "7012:7012"
- "2013:2013"
- "2014:2014"
environment:
NODE_NAME: cache:a1
LINE_RECEIVER_PORT: 2013
PICKLE_RECEIVER_PORT: 2014
CACHE_QUERY_PORT: 7012
LOCAL_DATA_DIR: /opt/graphite/storage/whispera
command: --instance=a1
cachea2:
image: banno/carbon-cache
volumes_from:
- whisper
ports:
- "7022:7022"
- "2023:2023"
- "2024:2024"
environment:
NODE_NAME: cache:a2
LINE_RECEIVER_PORT: 2023
PICKLE_RECEIVER_PORT: 2024
CACHE_QUERY_PORT: 7022
LOCAL_DATA_DIR: /opt/graphite/storage/whispera
command: --instance=a2
webb:
image: banno/graphite-web
volumes_from:
- whisper
environment:
CARBONLINK_HOSTS: cacheb1:7112,cacheb2:7122
WHISPER_DIR: /opt/graphite/storage/whisperb
ports:
- "8280:80"
links:
- cacheb1
- cacheb2
relayb:
image: banno/carbon-relay
ports:
- "2203:2203"
- "2204:2204"
environment:
LINE_RECEIVER_PORT: 2203
PICKLE_RECEIVER_PORT: 2204
RELAY_METHOD: consistent-hashing
DESTINATIONS: cacheb1:2114:b1, cacheb2:2124:b2
links:
- cacheb1
- cacheb2
cacheb1:
image: banno/carbon-cache
volumes_from:
- whisper
ports:
- "7112:7112"
- "2113:2113"
- "2114:2114"
environment:
NODE_NAME: cache:b1
LINE_RECEIVER_PORT: 2113
PICKLE_RECEIVER_PORT: 2114
CACHE_QUERY_PORT: 7112
LOCAL_DATA_DIR: /opt/graphite/storage/whisperb
command: --instance=b1
cacheb2:
image: banno/carbon-cache
volumes_from:
- whisper
ports:
- "7122:7122"
- "2123:2123"
- "2124:2124"
environment:
NODE_NAME: cache:b2
LINE_RECEIVER_PORT: 2123
PICKLE_RECEIVER_PORT: 2124
CACHE_QUERY_PORT: 7122
LOCAL_DATA_DIR: /opt/graphite/storage/whisperb
command: --instance=b2
whisper:
image: busybox
volumes:
- /tmp/whispera:/opt/graphite/storage/whispera
- /tmp/whisperb:/opt/graphite/storage/whisperb
test:
build: ./test
links:
- web
- relay
volumes_from:
- whisper