blob: 344f6f9f80e87a54911e841145286de14be723c7 [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
108
109 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700110 # Voltha server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700111 #
112 voltha:
113 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700114 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800115 "/voltha/voltha/main.py",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700116 "-v",
khenb95fe9a2016-10-05 11:15:25 -0700117 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700118 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700119 "--rest-port=8880",
Zsolt Haraszti45363352016-09-27 10:32:18 -0700120 "--grpc-port=50555",
khenb95fe9a2016-10-05 11:15:25 -0700121 "--kafka=@kafka",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700122 "--instance-id-is-container-name",
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800123 "--interface=eth1",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700124 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700125 ]
126 ports:
127 - 8880
Zsolt Haraszti45363352016-09-27 10:32:18 -0700128 - 50555
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800129 - 18880
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700130 depends_on:
131 - consul
132 links:
133 - consul
134 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700135 environment:
Zsolt Haraszti45363352016-09-27 10:32:18 -0700136 SERVICE_8880_NAME: "voltha-health"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700137 SERVICE_8880_CHECK_HTTP: "/health"
138 SERVICE_8880_CHECK_INTERVAL: "5s"
139 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Haraszti45363352016-09-27 10:32:18 -0700140 SERVICE_50555_NAME: "voltha-grpc"
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800141 SERVICE_18880_NAME: "voltha-sim-rest"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700142 volumes:
143 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800144 networks:
145 - default
146 - ponmgmt
alshabib7941d402016-11-08 00:11:20 +0100147
148#############################################
149# Item below this line will soon be removed.#
150#############################################
151
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700152 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700153 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700154 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700155 chameleon:
156 image: cord/chameleon
157 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800158 "/chameleon/chameleon/main.py",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700159 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700160 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700161 "--fluentd=fluentd:24224",
162 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700163 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700164 "--instance-id-is-container-name",
165 "-v"
166 ]
167 ports:
168 - 8881
169 depends_on:
170 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700171 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700172 links:
173 - consul
174 - fluentd
175 environment:
176 SERVICE_8881_NAME: "chameleon-rest"
177 volumes:
178 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400179 #
180 # ofagent server instance
181 #
182 ofagent:
183 image: cord/ofagent
184 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800185 "/ofagent/ofagent/main.py",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400186 "-v",
187 "--consul=${DOCKER_HOST_IP}:8500",
188 "--fluentd=fluentd:24224",
Zsolt Harasztiee5c4c82017-01-09 14:37:57 -0800189 "--controller=${DOCKER_HOST_IP}:6653",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400190 "--grpc-endpoint=@voltha-grpc",
191 "--instance-id-is-container-name",
192 "-v"
193 ]
194 depends_on:
195 - consul
196 - voltha
197 links:
198 - consul
199 - fluentd
200 volumes:
201 - "/var/run/docker.sock:/tmp/docker.sock"
alshabib06b449c2017-01-15 17:33:16 -0600202 restart: unless-stopped
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500203
204 #
205 # Netconf server instance(s)
206 #
207 netconf:
208 image: cord/netconf
Khen Nursimulub4e71472017-01-06 18:05:47 -0500209 privileged: true
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500210 command: [
211 "/netconf/netconf/main.py",
212 "-v",
213 "--consul=${DOCKER_HOST_IP}:8500",
214 "--fluentd=fluentd:24224",
215 "--grpc-endpoint=@voltha-grpc",
216 "--instance-id-is-container-name",
217 "-v"
218 ]
219 ports:
Khen Nursimulub4e71472017-01-06 18:05:47 -0500220 - "830:1830"
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500221 depends_on:
222 - consul
223 - voltha
224 links:
225 - consul
226 - fluentd
227 environment:
228 SERVICE_1830_NAME: "netconf-server"
229 volumes:
230 - "/var/run/docker.sock:/tmp/docker.sock"
231
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800232networks:
233 default:
234 driver: bridge
235 ponmgmt:
236 driver: bridge
237 driver_opts:
238 com.docker.network.bridge.name: "ponmgmt"