blob: 7d15c1639fc930034ae9161de0d2dbb578cab627 [file] [log] [blame]
Zsolt Harasztif2da1d02016-09-13 23:21:35 -07001version: '2'
2services:
3 #
khenb95fe9a2016-10-05 11:15:25 -07004 # Single-node zookeeper service
5 #
6 zookeeper:
7 image: wurstmeister/zookeeper
8 ports:
Khen Nursimuluda11dd72016-10-05 17:42:36 -07009 - 2181
khenb95fe9a2016-10-05 11:15:25 -070010 environment:
11 SERVICE_2181_NAME: "zookeeper"
12 #
13 # Single-node kafka service
14 #
15 kafka:
Khen Nursimulu74c1ef02016-10-12 21:17:42 -040016 image: wurstmeister/kafka
khenb95fe9a2016-10-05 11:15:25 -070017 ports:
Khen Nursimuluda11dd72016-10-05 17:42:36 -070018 - 9092
khenb95fe9a2016-10-05 11:15:25 -070019 environment:
20 KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP}
21 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
22 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
Khen Nursimulu34e7ebb2016-11-10 13:38:44 -080023 KAFKA_HEAP_OPTS: "-Xmx256M -Xms128M"
khenb95fe9a2016-10-05 11:15:25 -070024 SERVICE_9092_NAME: "kafka"
25 depends_on:
26 - consul
27 volumes:
28 - /var/run/docker.sock:/var/run/docker.sock
29 #
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070030 # Single-node consul agent
31 #
32 consul:
33 image: consul:latest
34 command: agent -server -bootstrap -client 0.0.0.0 -ui
35 ports:
36 - "8300:8300"
37 - "8400:8400"
38 - "8500:8500"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070039 - "8600:8600/udp"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070040 environment:
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070041 #SERVICE_53_IGNORE: "yes"
Zsolt Haraszti3d552922016-09-14 22:26:34 -070042 SERVICE_8300_IGNORE: "yes"
43 SERVICE_8400_IGNORE: "yes"
44 SERVICE_8500_NAME: "consul-rest"
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070045 #
46 # Registrator
47 #
48 registrator:
49 image: gliderlabs/registrator:latest
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070050 command: [
51 "-ip=${DOCKER_HOST_IP}",
52 "-retry-attempts", "100",
khenaidoo032d3302017-06-09 14:50:04 -040053 "-cleanup",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070054 # "-internal",
schowdhury9d027c02017-06-06 23:14:33 -070055 "consul://consul:8500"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070056 ]
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070057 links:
58 - consul
59 volumes:
60 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080061
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070062 #
63 # Fluentd log server
64 #
65 fluentd:
66 image: fluent/fluentd
67 ports:
68 - "24224:24224"
69 volumes:
70 - "/tmp/fluentd:/fluentd/log"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070071 environment:
72 SERVICE_24224_NAME: "fluentd-intake"
alshabib7941d402016-11-08 00:11:20 +010073
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070074 #
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080075 # Graphite-Grafana-statsd service instance
76 # (demo place-holder for external KPI system)
77 #
78 grafana:
Sergio Slobodrianba491582017-04-24 15:49:00 -040079 image: voltha/grafana
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080080 ports:
81 - "8882:80"
82 - "2003:2003"
83 - "2004:2004"
84 - "8126:8126"
85 - "8125:8125/udp"
86 environment:
87 SERVICE_80_NAME: "grafana-web-ui"
88 SERVICE_2003_NAME: "carbon-plain-text-intake"
89 SERVICE_2004_NAME: "carbon-pickle-intake"
90 SERVICE_8126_NAME: "statsd-tcp-intake"
91 SERVICE_8125_NAME: "statsd-udp-intake"
Sergio Slobodrianba491582017-04-24 15:49:00 -040092 GR_SERVER_ROOT_URL: "http://localhost:80/grafana/"
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080093
94 #
95 # Shovel (Kafka-graphite-gateway)
96 #
97 shovel:
98 image: cord/shovel
99 command: [
100 "/shovel/shovel/main.py",
101 "--kafka=@kafka",
102 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti1b7c0362016-12-12 09:45:47 -0800103 "--topic=voltha.kpis",
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -0800104 "--host=${DOCKER_HOST_IP}"
105 ]
106 depends_on:
107 - consul
108 - kafka
109 - grafana
alshabibb634d902017-01-16 13:10:17 -0600110 restart: unless-stopped
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -0800111
112 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700113 # Voltha server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700114 #
115 voltha:
116 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700117 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800118 "/voltha/voltha/main.py",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700119 "-v",
khenb95fe9a2016-10-05 11:15:25 -0700120 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700121 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700122 "--rest-port=8880",
Zsolt Haraszti45363352016-09-27 10:32:18 -0700123 "--grpc-port=50555",
khenb95fe9a2016-10-05 11:15:25 -0700124 "--kafka=@kafka",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700125 "--instance-id-is-container-name",
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800126 "--interface=eth1",
khenaidoo032d3302017-06-09 14:50:04 -0400127 "--backend=consul",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700128 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700129 ]
130 ports:
131 - 8880
Zsolt Haraszti45363352016-09-27 10:32:18 -0700132 - 50555
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800133 - 18880
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700134 depends_on:
135 - consul
136 links:
137 - consul
138 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700139 environment:
Zsolt Haraszti45363352016-09-27 10:32:18 -0700140 SERVICE_8880_NAME: "voltha-health"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700141 SERVICE_8880_CHECK_HTTP: "/health"
142 SERVICE_8880_CHECK_INTERVAL: "5s"
143 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Haraszti45363352016-09-27 10:32:18 -0700144 SERVICE_50555_NAME: "voltha-grpc"
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800145 SERVICE_18880_NAME: "voltha-sim-rest"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700146 volumes:
147 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800148 networks:
149 - default
150 - ponmgmt
alshabib7941d402016-11-08 00:11:20 +0100151
Sergio Slobodrianab11c642017-04-24 07:16:58 -0400152 #
153 # Voltha cli container
154 #
155 vcli:
156 image: cord/vcli
157 environment:
158 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
159 ports:
160 - "5022:22"
161 depends_on:
162 - voltha
163
alshabib7941d402016-11-08 00:11:20 +0100164#############################################
165# Item below this line will soon be removed.#
166#############################################
167
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700168 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700169 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700170 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700171 chameleon:
172 image: cord/chameleon
173 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800174 "/chameleon/chameleon/main.py",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700175 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700176 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700177 "--fluentd=fluentd:24224",
178 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700179 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700180 "--instance-id-is-container-name",
181 "-v"
182 ]
183 ports:
184 - 8881
185 depends_on:
186 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700187 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700188 links:
189 - consul
190 - fluentd
191 environment:
192 SERVICE_8881_NAME: "chameleon-rest"
193 volumes:
194 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400195 #
196 # ofagent server instance
197 #
198 ofagent:
199 image: cord/ofagent
200 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800201 "/ofagent/ofagent/main.py",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400202 "-v",
203 "--consul=${DOCKER_HOST_IP}:8500",
204 "--fluentd=fluentd:24224",
Zsolt Harasztiee5c4c82017-01-09 14:37:57 -0800205 "--controller=${DOCKER_HOST_IP}:6653",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400206 "--grpc-endpoint=@voltha-grpc",
207 "--instance-id-is-container-name",
208 "-v"
209 ]
210 depends_on:
211 - consul
212 - voltha
213 links:
214 - consul
215 - fluentd
216 volumes:
217 - "/var/run/docker.sock:/tmp/docker.sock"
alshabib06b449c2017-01-15 17:33:16 -0600218 restart: unless-stopped
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500219
220 #
221 # Netconf server instance(s)
222 #
223 netconf:
224 image: cord/netconf
Khen Nursimulub4e71472017-01-06 18:05:47 -0500225 privileged: true
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500226 command: [
227 "/netconf/netconf/main.py",
228 "-v",
229 "--consul=${DOCKER_HOST_IP}:8500",
230 "--fluentd=fluentd:24224",
231 "--grpc-endpoint=@voltha-grpc",
232 "--instance-id-is-container-name",
233 "-v"
234 ]
235 ports:
Khen Nursimulub4e71472017-01-06 18:05:47 -0500236 - "830:1830"
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500237 depends_on:
238 - consul
239 - voltha
240 links:
241 - consul
242 - fluentd
243 environment:
244 SERVICE_1830_NAME: "netconf-server"
245 volumes:
246 - "/var/run/docker.sock:/tmp/docker.sock"
247
Sergio Slobodrian4d307102017-04-24 10:19:00 -0400248 #
Sergio Slobodrianff52e1b2017-04-24 12:39:08 -0400249 # Dashboard daemon
250 #
251 dashd:
252 image: cord/dashd
253 command: [
254 "/dashd/dashd/main.py",
255 "--kafka=@kafka",
256 "--consul=${DOCKER_HOST_IP}:8500",
257 "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8882/api",
258 "--topic=voltha.kpis",
259 "--docker_host=${DOCKER_HOST_IP}"
260 ]
261 depends_on:
262 - consul
263 - kafka
264 - grafana
265 restart: unless-stopped
266
267 #
268 # Nginx service consolidation
269 #
270 nginx:
271 image: voltha/nginx
272 ports:
273 - "80:80"
274 environment:
275 CONSUL_ADDR: "${DOCKER_HOST_IP}:8500"
276 command: [
277 "/nginx_config/start_service.sh"
278 ]
279 depends_on:
280 - consul
281 - grafana
Sergio Slobodriand9ec6002017-04-25 08:09:11 -0400282 - chameleon
283 - portainer
Sergio Slobodrianff52e1b2017-04-24 12:39:08 -0400284 restart: unless-stopped
285 volumes:
286 - "/cord/incubator/voltha/nginx_config:/nginx_config"
287
288 #
Sergio Slobodrian4d307102017-04-24 10:19:00 -0400289 # Docker ui
290 #
291 portainer:
292 image: voltha/portainer
293 ports:
294 - "9000:9000"
295 environment:
296 CONSUL_ADDR: "${DOCKER_HOST_IP}:8500"
Sergio Slobodrian4d307102017-04-24 10:19:00 -0400297 restart: unless-stopped
Sergio Slobodriand9ec6002017-04-25 08:09:11 -0400298 entrypoint: ["/portainer", "--logo", "/docker/images/logo_alt.png"]
Sergio Slobodrian4d307102017-04-24 10:19:00 -0400299 volumes:
300 - "/var/run/docker.sock:/var/run/docker.sock"
301
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800302networks:
303 default:
304 driver: bridge
305 ponmgmt:
306 driver: bridge
307 driver_opts:
308 com.docker.network.bridge.name: "ponmgmt"