blob: 84a8dd237a445ad762ff7e4a66eb059769890c6d [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
149#############################################
150# Item below this line will soon be removed.#
151#############################################
152
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700153 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700154 # Chameleon server instance(s)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700155 #
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700156 chameleon:
157 image: cord/chameleon
158 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800159 "/chameleon/chameleon/main.py",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700160 "-v",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700161 "--consul=consul:8500",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700162 "--fluentd=fluentd:24224",
163 "--rest-port=8881",
Zsolt Haraszti15044082016-10-05 00:18:57 -0700164 "--grpc-endpoint=@voltha-grpc",
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700165 "--instance-id-is-container-name",
166 "-v"
167 ]
168 ports:
169 - 8881
170 depends_on:
171 - consul
Zsolt Haraszti034db372016-10-03 22:26:41 -0700172 - voltha
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700173 links:
174 - consul
175 - fluentd
176 environment:
177 SERVICE_8881_NAME: "chameleon-rest"
178 volumes:
179 - "/var/run/docker.sock:/tmp/docker.sock"
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400180 #
181 # ofagent server instance
182 #
183 ofagent:
184 image: cord/ofagent
185 command: [
Zsolt Haraszti1edb8282016-11-08 10:57:19 -0800186 "/ofagent/ofagent/main.py",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400187 "-v",
188 "--consul=${DOCKER_HOST_IP}:8500",
189 "--fluentd=fluentd:24224",
Zsolt Harasztiee5c4c82017-01-09 14:37:57 -0800190 "--controller=${DOCKER_HOST_IP}:6653",
Khen Nursimulu68b9be32016-10-25 11:57:04 -0400191 "--grpc-endpoint=@voltha-grpc",
192 "--instance-id-is-container-name",
193 "-v"
194 ]
195 depends_on:
196 - consul
197 - voltha
198 links:
199 - consul
200 - fluentd
201 volumes:
202 - "/var/run/docker.sock:/tmp/docker.sock"
alshabib06b449c2017-01-15 17:33:16 -0600203 restart: unless-stopped
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500204
205 #
206 # Netconf server instance(s)
207 #
208 netconf:
209 image: cord/netconf
Khen Nursimulub4e71472017-01-06 18:05:47 -0500210 privileged: true
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500211 command: [
212 "/netconf/netconf/main.py",
213 "-v",
214 "--consul=${DOCKER_HOST_IP}:8500",
215 "--fluentd=fluentd:24224",
216 "--grpc-endpoint=@voltha-grpc",
217 "--instance-id-is-container-name",
218 "-v"
219 ]
220 ports:
Khen Nursimulub4e71472017-01-06 18:05:47 -0500221 - "830:1830"
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -0500222 depends_on:
223 - consul
224 - voltha
225 links:
226 - consul
227 - fluentd
228 environment:
229 SERVICE_1830_NAME: "netconf-server"
230 volumes:
231 - "/var/run/docker.sock:/tmp/docker.sock"
232
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -0800233networks:
234 default:
235 driver: bridge
236 ponmgmt:
237 driver: bridge
238 driver_opts:
239 com.docker.network.bridge.name: "ponmgmt"