blob: 99f42eba1b106654b0291737d14b939dc0dd15f9 [file] [log] [blame]
khenaidoo3d3f99a2017-10-10 15:53:42 -04001version: '2'
2services:
3 #
4 # Single-node zookeeper service
5 #
6 zookeeper:
David K. Bainbridge737b74f2018-01-22 12:57:52 -08007 image: "${REGISTRY}wurstmeister/zookeeper:latest"
khenaidoo3d3f99a2017-10-10 15:53:42 -04008 ports:
9 - 2181
10 environment:
11 SERVICE_2181_NAME: "zookeeper"
12 #
13 # Single-node kafka service
14 #
15 kafka:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080016 image: "${REGISTRY}wurstmeister/kafka:latest"
khenaidoo3d3f99a2017-10-10 15:53:42 -040017 ports:
18 - 9092
19 environment:
20 KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP}
21 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
22 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
23 KAFKA_HEAP_OPTS: "-Xmx256M -Xms128M"
24 SERVICE_9092_NAME: "kafka"
25 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -080026 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -040027 volumes:
28 - /var/run/docker.sock:/var/run/docker.sock
29 #
30 # Single-node consul agent
31 #
Jonathan Hart87314cd2018-02-12 17:15:35 -080032 vconsul:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080033 image: "${REGISTRY}consul:0.9.2"
khenaidoo3d3f99a2017-10-10 15:53:42 -040034 command: agent -server -bootstrap -client 0.0.0.0 -ui
35 ports:
36 - "8300:8300"
37 - "8400:8400"
38 - "8500:8500"
39 - "8600:8600/udp"
40 environment:
41 #SERVICE_53_IGNORE: "yes"
42 SERVICE_8300_IGNORE: "yes"
43 SERVICE_8400_IGNORE: "yes"
44 SERVICE_8500_NAME: "consul-rest"
45 #
46 # Registrator
47 #
48 registrator:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080049 image: "${REGISTRY}gliderlabs/registrator:latest"
khenaidoo3d3f99a2017-10-10 15:53:42 -040050 command: [
51 "-ip=${DOCKER_HOST_IP}",
52 "-retry-attempts", "100",
53 "-cleanup",
54 # "-internal",
Jonathan Hart87314cd2018-02-12 17:15:35 -080055 "consul://vconsul:8500"
khenaidoo3d3f99a2017-10-10 15:53:42 -040056 ]
57 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -080058 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -040059 volumes:
60 - "/var/run/docker.sock:/tmp/docker.sock"
61
62 #
63 # Fluentd log server
64 #
65 fluentd:
David K. Bainbridge09104892018-01-24 12:27:33 -080066 image: "${REGISTRY}fluent/fluentd:v0.12.42"
khenaidoo3d3f99a2017-10-10 15:53:42 -040067 ports:
68 - "24224:24224"
69 volumes:
70 - "/tmp/fluentd:/fluentd/log"
71 environment:
72 SERVICE_24224_NAME: "fluentd-intake"
73
74 #
75 # Graphite-Grafana-statsd service instance
76 # (demo place-holder for external KPI system)
77 #
78 grafana:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080079 image: "${REGISTRY}${REPOSITORY}voltha-grafana${TAG}"
khenaidoo3d3f99a2017-10-10 15:53:42 -040080 ports:
81 - "8883: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"
92 GR_SERVER_ROOT_URL: "http://localhost:80/grafana/"
93
94 #
95 # Shovel (Kafka-graphite-gateway)
96 #
97 shovel:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080098 image: "${REGISTRY}${REPOSITORY}voltha-shovel${TAG}"
khenaidoo3d3f99a2017-10-10 15:53:42 -040099 command: [
100 "/shovel/shovel/main.py",
101 "--kafka=@kafka",
102 "--consul=${DOCKER_HOST_IP}:8500",
103 "--topic=voltha.kpis",
104 "--host=${DOCKER_HOST_IP}"
105 ]
106 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800107 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -0400108 - kafka
109 - grafana
110 restart: unless-stopped
111
112 #
113 # Voltha server instance(s)
114 #
115 voltha:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800116 image: "${REGISTRY}${REPOSITORY}voltha-voltha${TAG}"
khenaidoo3d3f99a2017-10-10 15:53:42 -0400117 command: [
118 "/voltha/voltha/main.py",
119 "-v",
120 "--consul=${DOCKER_HOST_IP}:8500",
121 "--fluentd=fluentd:24224",
122 "--rest-port=8880",
123 "--grpc-port=50556",
124 "--kafka=@kafka",
125 "--instance-id-is-container-name",
126 "--interface=eth1",
127 "--backend=consul",
128 "-v"
129 ]
130 ports:
131 - 8880
132 - 50556
133 - 18880
134 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800135 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -0400136 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800137 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -0400138 - fluentd
139 environment:
140 SERVICE_8880_NAME: "voltha-health"
141 SERVICE_8880_CHECK_HTTP: "/health"
142 SERVICE_8880_CHECK_INTERVAL: "5s"
143 SERVICE_8880_CHECK_TIMEOUT: "1s"
144 SERVICE_18880_NAME: "voltha-sim-rest"
145 SERVICE_HOST_IP: "${DOCKER_HOST_IP}"
146 SERVICE_50556_NAME: "vcore-grpc"
147 volumes:
148 - "/var/run/docker.sock:/tmp/docker.sock"
149 networks:
150 - default
151 - ponmgmt
152
153 envoy:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800154 image: "${REGISTRY}${REPOSITORY}voltha-envoy${TAG}"
khenaidoo3d3f99a2017-10-10 15:53:42 -0400155 entrypoint:
156 - /usr/local/bin/envoyd
157 - -envoy-cfg-template
158 - "/envoy/voltha-grpc-proxy.template.json"
159 - -envoy-config
160 - "/envoy/voltha-grpc-proxy.json"
Jonathan Hart87314cd2018-02-12 17:15:35 -0800161 - -consul-svc-nme
162 - "vconsul"
163 - -kv-svc-name
164 - "vconsul"
khenaidoo3d3f99a2017-10-10 15:53:42 -0400165 ports:
166 - "50555:50555"
167 - "8882:8882"
168 - "8443:8443"
169 - "8001:8001"
170 environment:
171 SERVICE_50555_NAME: "voltha-grpc"
172 volumes:
173 - "/var/run/docker.sock:/tmp/docker.sock"
174 networks:
175 - default
176 - ponmgmt
177 links:
178 - voltha:vcore
179 #
180 # Voltha cli container
181 #
David K. Bainbridgebba65ff2018-01-19 09:26:09 -0800182 cli:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800183 image: "${REGISTRY}${REPOSITORY}voltha-cli${TAG}"
khenaidoo3d3f99a2017-10-10 15:53:42 -0400184 command: [
185 "/cli/cli/setup.sh",
186 "-L",
187 "-G"
188 ]
189 environment:
190 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
191 ports:
192 - "5022:22"
193 depends_on:
194 - voltha
195
196#############################################
197# Item below this line will soon be removed.#
198#############################################
199
200 #
khenaidoo3d3f99a2017-10-10 15:53:42 -0400201 # ofagent server instance
202 #
203 ofagent:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800204 image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}"
khenaidoo3d3f99a2017-10-10 15:53:42 -0400205 command: [
206 "/ofagent/ofagent/main.py",
207 "-v",
208 "--consul=${DOCKER_HOST_IP}:8500",
209 "--fluentd=fluentd:24224",
210 "--controller=${DOCKER_HOST_IP}:6653",
211 "--grpc-endpoint=@voltha-grpc",
212 "--instance-id-is-container-name",
213 "-v"
214 ]
215 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800216 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -0400217 - voltha
218 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800219 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -0400220 - fluentd
221 volumes:
222 - "/var/run/docker.sock:/tmp/docker.sock"
223 restart: unless-stopped
224
225 #
226 # Netconf server instance(s)
227 #
228 netconf:
David K. Bainbridge737b74f2018-01-22 12:57:52 -0800229 image: "${REGISTRY}${REPOSITORY}voltha-netconf${TAG}"
khenaidoo3d3f99a2017-10-10 15:53:42 -0400230 privileged: true
231 command: [
232 "/netconf/netconf/main.py",
233 "-v",
234 "--consul=${DOCKER_HOST_IP}:8500",
235 "--fluentd=fluentd:24224",
236 "--grpc-endpoint=@voltha-grpc",
237 "--instance-id-is-container-name",
238 "-v"
239 ]
240 ports:
241 - "830:1830"
242 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800243 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -0400244 - voltha
245 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800246 - vconsul
khenaidoo3d3f99a2017-10-10 15:53:42 -0400247 - fluentd
248 environment:
249 SERVICE_1830_NAME: "netconf-server"
250 volumes:
251 - "/var/run/docker.sock:/tmp/docker.sock"
252
253
254networks:
255 default:
256 driver: bridge
257 ponmgmt:
258 driver: bridge
259 driver_opts:
260 com.docker.network.bridge.name: "ponmgmt"