blob: 3689dc9d1ee2518d60b25ffecb7527009d4c8113 [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
73 #
74 # Podder service instance
75 #
76 podder:
77 image: cord/podder
78 volumes:
79 - "/var/run/docker.sock:/tmp/docker.sock"
80 restart: unless-stopped
81
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070082 #
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -080083 # Graphite-Grafana-statsd service instance
84 # (demo place-holder for external KPI system)
85 #
86 grafana:
87 image: kamon/grafana_graphite
88 ports:
89 - "8882:80"
90 - "2003:2003"
91 - "2004:2004"
92 - "8126:8126"
93 - "8125:8125/udp"
94 environment:
95 SERVICE_80_NAME: "grafana-web-ui"
96 SERVICE_2003_NAME: "carbon-plain-text-intake"
97 SERVICE_2004_NAME: "carbon-pickle-intake"
98 SERVICE_8126_NAME: "statsd-tcp-intake"
99 SERVICE_8125_NAME: "statsd-udp-intake"
100
101 #
102 # Shovel (Kafka-graphite-gateway)
103 #
104 shovel:
105 image: cord/shovel
106 command: [
107 "/shovel/shovel/main.py",
108 "--kafka=@kafka",
109 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti1b7c0362016-12-12 09:45:47 -0800110 "--topic=voltha.kpis",
Zsolt Harasztiaa4626e2016-12-08 16:53:06 -0800111 "--host=${DOCKER_HOST_IP}"
112 ]
113 depends_on:
114 - consul
115 - kafka
116 - grafana
117
118 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700119 # Voltha server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700120 #
121 voltha:
122 image: cord/voltha
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700123 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800124 "/voltha/voltha/main.py",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700125 "-v",
khenb95fe9a2016-10-05 11:15:25 -0700126 "--consul=${DOCKER_HOST_IP}:8500",
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700127 "--fluentd=fluentd:24224",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700128 "--rest-port=8880",
Zsolt Haraszti45363352016-09-27 10:32:18 -0700129 "--grpc-port=50555",
khenb95fe9a2016-10-05 11:15:25 -0700130 "--kafka=@kafka",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700131 "--instance-id-is-container-name",
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800132 "--interface=eth1",
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700133 "-v"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700134 ]
135 ports:
136 - 8880
Zsolt Haraszti45363352016-09-27 10:32:18 -0700137 - 50555
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800138 - 18880
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700139 depends_on:
140 - consul
141 links:
142 - consul
143 - fluentd
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700144 environment:
Zsolt Haraszti45363352016-09-27 10:32:18 -0700145 SERVICE_8880_NAME: "voltha-health"
Zsolt Haraszti3d552922016-09-14 22:26:34 -0700146 SERVICE_8880_CHECK_HTTP: "/health"
147 SERVICE_8880_CHECK_INTERVAL: "5s"
148 SERVICE_8880_CHECK_TIMEOUT: "1s"
Zsolt Haraszti45363352016-09-27 10:32:18 -0700149 SERVICE_50555_NAME: "voltha-grpc"
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800150 SERVICE_18880_NAME: "voltha-sim-rest"
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700151 volumes:
152 - "/var/run/docker.sock:/tmp/docker.sock"
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800153 networks:
154 - default
155 - ponmgmt
alshabib7941d402016-11-08 00:11:20 +0100156
157#############################################
158# Item below this line will soon be removed.#
159#############################################
160
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700161 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700162 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700163 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700164 chameleon:
165 image: cord/chameleon
166 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800167 "/chameleon/chameleon/main.py",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700168 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700169 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700170 "--fluentd=fluentd:24224",
171 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700172 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700173 "--instance-id-is-container-name",
174 "-v"
175 ]
176 ports:
177 - 8881
178 depends_on:
179 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700180 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700181 links:
182 - consul
183 - fluentd
184 environment:
185 SERVICE_8881_NAME: "chameleon-rest"
186 volumes:
187 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400188 #
189 # ofagent server instance
190 #
191 ofagent:
192 image: cord/ofagent
193 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800194 "/ofagent/ofagent/main.py",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400195 "-v",
196 "--consul=${DOCKER_HOST_IP}:8500",
197 "--fluentd=fluentd:24224",
Khen Nursimuluf309e2c2016-10-25 14:36:21 -0400198 "--controller=${DOCKER_HOST_IP}:6633",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400199 "--grpc-endpoint=@voltha-grpc",
200 "--instance-id-is-container-name",
201 "-v"
202 ]
203 depends_on:
204 - consul
205 - voltha
206 links:
207 - consul
208 - fluentd
209 volumes:
210 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500211
212 #
213 # Netconf server instance(s)
214 #
215 netconf:
216 image: cord/netconf
Khen Nursimulub4e71472017-01-06 18:05:47 -0500217 privileged: true
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500218 command: [
219 "/netconf/netconf/main.py",
220 "-v",
221 "--consul=${DOCKER_HOST_IP}:8500",
222 "--fluentd=fluentd:24224",
223 "--grpc-endpoint=@voltha-grpc",
224 "--instance-id-is-container-name",
225 "-v"
226 ]
227 ports:
Khen Nursimulub4e71472017-01-06 18:05:47 -0500228 - "830:1830"
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500229 depends_on:
230 - consul
231 - voltha
232 links:
233 - consul
234 - fluentd
235 environment:
236 SERVICE_1830_NAME: "netconf-server"
237 volumes:
238 - "/var/run/docker.sock:/tmp/docker.sock"
239
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800240networks:
241 default:
242 driver: bridge
243 ponmgmt:
244 driver: bridge
245 driver_opts:
246 com.docker.network.bridge.name: "ponmgmt"