blob: a84b15272bc64cc5b5517490b7d9a75062965465 [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",
53 # "-internal",
54 "consul://consul:8500"
55 ]
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070056 links:
57 - consul
58 volumes:
59 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080060
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070061 #
62 # Fluentd log server
63 #
64 fluentd:
65 image: fluent/fluentd
66 ports:
67 - "24224:24224"
68 volumes:
69 - "/tmp/fluentd:/fluentd/log"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070070 environment:
71 SERVICE_24224_NAME: "fluentd-intake"
alshabib7941d402016-11-08 00:11:20 +010072
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070073 #
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080074 # Graphite-Grafana-statsd service instance
75 # (demo place-holder for external KPI system)
76 #
77 grafana:
78 image: kamon/grafana_graphite
79 ports:
80 - "8882:80"
81 - "2003:2003"
82 - "2004:2004"
83 - "8126:8126"
84 - "8125:8125/udp"
85 environment:
86 SERVICE_80_NAME: "grafana-web-ui"
87 SERVICE_2003_NAME: "carbon-plain-text-intake"
88 SERVICE_2004_NAME: "carbon-pickle-intake"
89 SERVICE_8126_NAME: "statsd-tcp-intake"
90 SERVICE_8125_NAME: "statsd-udp-intake"
91
92 #
93 # Shovel (Kafka-graphite-gateway)
94 #
95 shovel:
96 image: cord/shovel
97 command: [
98 "/shovel/shovel/main.py",
99 "--kafka=@kafka",
100 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti1b7c0362016-12-12 09:45:47 -0800101 "--topic=voltha.kpis",
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -0800102 "--host=${DOCKER_HOST_IP}"
103 ]
104 depends_on:
105 - consul
106 - kafka
107 - grafana
alshabibb634d902017-01-16 13:10:17 -0600108 restart: unless-stopped
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -0800109
110 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700111 # Voltha server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700112 #
113 voltha:
114 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700115 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800116 "/voltha/voltha/main.py",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700117 "-v",
khenb95fe9a2016-10-05 11:15:25 -0700118 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700119 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700120 "--rest-port=8880",
Zsolt Haraszti45363352016-09-27 10:32:18 -0700121 "--grpc-port=50555",
khenb95fe9a2016-10-05 11:15:25 -0700122 "--kafka=@kafka",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700123 "--instance-id-is-container-name",
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800124 "--interface=eth1",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700125 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700126 ]
127 ports:
128 - 8880
Zsolt Haraszti45363352016-09-27 10:32:18 -0700129 - 50555
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800130 - 18880
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700131 depends_on:
132 - consul
133 links:
134 - consul
135 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700136 environment:
Zsolt Haraszti45363352016-09-27 10:32:18 -0700137 SERVICE_8880_NAME: "voltha-health"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700138 SERVICE_8880_CHECK_HTTP: "/health"
139 SERVICE_8880_CHECK_INTERVAL: "5s"
140 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Haraszti45363352016-09-27 10:32:18 -0700141 SERVICE_50555_NAME: "voltha-grpc"
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800142 SERVICE_18880_NAME: "voltha-sim-rest"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700143 volumes:
144 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800145 networks:
146 - default
147 - ponmgmt
alshabib7941d402016-11-08 00:11:20 +0100148
Sergio Slobodrianab11c642017-04-24 07:16:58 -0400149 #
150 # Voltha cli container
151 #
152 vcli:
153 image: cord/vcli
154 environment:
155 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
156 ports:
157 - "5022:22"
158 depends_on:
159 - voltha
160
alshabib7941d402016-11-08 00:11:20 +0100161#############################################
162# Item below this line will soon be removed.#
163#############################################
164
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700165 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700166 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700167 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700168 chameleon:
169 image: cord/chameleon
170 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800171 "/chameleon/chameleon/main.py",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700172 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700173 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700174 "--fluentd=fluentd:24224",
175 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700176 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700177 "--instance-id-is-container-name",
178 "-v"
179 ]
180 ports:
181 - 8881
182 depends_on:
183 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700184 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700185 links:
186 - consul
187 - fluentd
188 environment:
189 SERVICE_8881_NAME: "chameleon-rest"
190 volumes:
191 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400192 #
193 # ofagent server instance
194 #
195 ofagent:
196 image: cord/ofagent
197 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800198 "/ofagent/ofagent/main.py",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400199 "-v",
200 "--consul=${DOCKER_HOST_IP}:8500",
201 "--fluentd=fluentd:24224",
Zsolt Harasztiee5c4c82017-01-09 14:37:57 -0800202 "--controller=${DOCKER_HOST_IP}:6653",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400203 "--grpc-endpoint=@voltha-grpc",
204 "--instance-id-is-container-name",
205 "-v"
206 ]
207 depends_on:
208 - consul
209 - voltha
210 links:
211 - consul
212 - fluentd
213 volumes:
214 - "/var/run/docker.sock:/tmp/docker.sock"
alshabib06b449c2017-01-15 17:33:16 -0600215 restart: unless-stopped
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500216
217 #
218 # Netconf server instance(s)
219 #
220 netconf:
221 image: cord/netconf
Khen Nursimulub4e71472017-01-06 18:05:47 -0500222 privileged: true
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500223 command: [
224 "/netconf/netconf/main.py",
225 "-v",
226 "--consul=${DOCKER_HOST_IP}:8500",
227 "--fluentd=fluentd:24224",
228 "--grpc-endpoint=@voltha-grpc",
229 "--instance-id-is-container-name",
230 "-v"
231 ]
232 ports:
Khen Nursimulub4e71472017-01-06 18:05:47 -0500233 - "830:1830"
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500234 depends_on:
235 - consul
236 - voltha
237 links:
238 - consul
239 - fluentd
240 environment:
241 SERVICE_1830_NAME: "netconf-server"
242 volumes:
243 - "/var/run/docker.sock:/tmp/docker.sock"
244
Sergio Slobodrian4d307102017-04-24 10:19:00 -0400245 #
Sergio Slobodrianff52e1b2017-04-24 12:39:08 -0400246 # Dashboard daemon
247 #
248 dashd:
249 image: cord/dashd
250 command: [
251 "/dashd/dashd/main.py",
252 "--kafka=@kafka",
253 "--consul=${DOCKER_HOST_IP}:8500",
254 "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8882/api",
255 "--topic=voltha.kpis",
256 "--docker_host=${DOCKER_HOST_IP}"
257 ]
258 depends_on:
259 - consul
260 - kafka
261 - grafana
262 restart: unless-stopped
263
264 #
265 # Nginx service consolidation
266 #
267 nginx:
268 image: voltha/nginx
269 ports:
270 - "80:80"
271 environment:
272 CONSUL_ADDR: "${DOCKER_HOST_IP}:8500"
273 command: [
274 "/nginx_config/start_service.sh"
275 ]
276 depends_on:
277 - consul
278 - grafana
279 restart: unless-stopped
280 volumes:
281 - "/cord/incubator/voltha/nginx_config:/nginx_config"
282
283 #
Sergio Slobodrian4d307102017-04-24 10:19:00 -0400284 # Docker ui
285 #
286 portainer:
287 image: voltha/portainer
288 ports:
289 - "9000:9000"
290 environment:
291 CONSUL_ADDR: "${DOCKER_HOST_IP}:8500"
292 depends_on:
293 - nginx
294 restart: unless-stopped
295 volumes:
296 - "/var/run/docker.sock:/var/run/docker.sock"
297
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800298networks:
299 default:
300 driver: bridge
301 ponmgmt:
302 driver: bridge
303 driver_opts:
304 com.docker.network.bridge.name: "ponmgmt"