Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 14 | version: '2' |
| 15 | services: |
| 16 | # |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 17 | # Single-node zookeeper service |
| 18 | # |
| 19 | zookeeper: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 20 | image: "${REGISTRY}wurstmeister/zookeeper:latest" |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 21 | ports: |
Khen Nursimulu | da11dd7 | 2016-10-05 17:42:36 -0700 | [diff] [blame] | 22 | - 2181 |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 23 | environment: |
| 24 | SERVICE_2181_NAME: "zookeeper" |
| 25 | # |
| 26 | # Single-node kafka service |
| 27 | # |
| 28 | kafka: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 29 | image: "${REGISTRY}wurstmeister/kafka:latest" |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 30 | ports: |
Khen Nursimulu | da11dd7 | 2016-10-05 17:42:36 -0700 | [diff] [blame] | 31 | - 9092 |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 32 | environment: |
| 33 | KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP} |
| 34 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 35 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
Khen Nursimulu | 34e7ebb | 2016-11-10 13:38:44 -0800 | [diff] [blame] | 36 | KAFKA_HEAP_OPTS: "-Xmx256M -Xms128M" |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 37 | SERVICE_9092_NAME: "kafka" |
| 38 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 39 | - vconsul |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 40 | volumes: |
| 41 | - /var/run/docker.sock:/var/run/docker.sock |
| 42 | # |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 43 | # Single-node consul agent |
| 44 | # |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 45 | vconsul: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 46 | image: "${REGISTRY}consul:0.9.2" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 47 | command: agent -server -bootstrap -client 0.0.0.0 -ui |
| 48 | ports: |
| 49 | - "8300:8300" |
| 50 | - "8400:8400" |
| 51 | - "8500:8500" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 52 | - "8600:8600/udp" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 53 | environment: |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 54 | #SERVICE_53_IGNORE: "yes" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 55 | SERVICE_8300_IGNORE: "yes" |
| 56 | SERVICE_8400_IGNORE: "yes" |
| 57 | SERVICE_8500_NAME: "consul-rest" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 58 | # |
| 59 | # Registrator |
| 60 | # |
| 61 | registrator: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 62 | image: "${REGISTRY}gliderlabs/registrator:latest" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 63 | command: [ |
| 64 | "-ip=${DOCKER_HOST_IP}", |
| 65 | "-retry-attempts", "100", |
khenaidoo | 032d330 | 2017-06-09 14:50:04 -0400 | [diff] [blame] | 66 | "-cleanup", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 67 | # "-internal", |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 68 | "consul://vconsul:8500" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 69 | ] |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 70 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 71 | - vconsul |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 72 | volumes: |
| 73 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 74 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 75 | # |
| 76 | # Fluentd log server |
| 77 | # |
| 78 | fluentd: |
David K. Bainbridge | 0910489 | 2018-01-24 12:27:33 -0800 | [diff] [blame] | 79 | image: "${REGISTRY}fluent/fluentd:v0.12.42" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 80 | ports: |
| 81 | - "24224:24224" |
| 82 | volumes: |
| 83 | - "/tmp/fluentd:/fluentd/log" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 84 | environment: |
| 85 | SERVICE_24224_NAME: "fluentd-intake" |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 86 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 87 | # |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 88 | # Graphite-Grafana-statsd service instance |
| 89 | # (demo place-holder for external KPI system) |
| 90 | # |
| 91 | grafana: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 92 | image: "${REGISTRY}${REPOSITORY}voltha-grafana${TAG}" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 93 | ports: |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 94 | - "8883:80" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 95 | - "2003:2003" |
| 96 | - "2004:2004" |
| 97 | - "8126:8126" |
| 98 | - "8125:8125/udp" |
| 99 | environment: |
| 100 | SERVICE_80_NAME: "grafana-web-ui" |
| 101 | SERVICE_2003_NAME: "carbon-plain-text-intake" |
| 102 | SERVICE_2004_NAME: "carbon-pickle-intake" |
| 103 | SERVICE_8126_NAME: "statsd-tcp-intake" |
| 104 | SERVICE_8125_NAME: "statsd-udp-intake" |
Sergio Slobodrian | ba49158 | 2017-04-24 15:49:00 -0400 | [diff] [blame] | 105 | GR_SERVER_ROOT_URL: "http://localhost:80/grafana/" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 106 | |
| 107 | # |
| 108 | # Shovel (Kafka-graphite-gateway) |
| 109 | # |
| 110 | shovel: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 111 | image: "${REGISTRY}${REPOSITORY}voltha-shovel${TAG}" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 112 | command: [ |
| 113 | "/shovel/shovel/main.py", |
| 114 | "--kafka=@kafka", |
| 115 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 1b7c036 | 2016-12-12 09:45:47 -0800 | [diff] [blame] | 116 | "--topic=voltha.kpis", |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 117 | "--host=${DOCKER_HOST_IP}" |
| 118 | ] |
| 119 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 120 | - vconsul |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 121 | - kafka |
| 122 | - grafana |
alshabib | b634d90 | 2017-01-16 13:10:17 -0600 | [diff] [blame] | 123 | restart: unless-stopped |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 124 | |
| 125 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 126 | # Voltha server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 127 | # |
| 128 | voltha: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 129 | image: "${REGISTRY}${REPOSITORY}voltha-voltha${TAG}" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 130 | logging: |
| 131 | driver: "json-file" |
| 132 | options: |
| 133 | max-size: "10m" |
| 134 | max-file: "3" |
| 135 | # Use the fluentd driver to push logs to fluentd instead |
| 136 | # driver: "fluentd" |
| 137 | # options: |
| 138 | # fluentd-address: ${DOCKER_HOST_IP}:24224 |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 139 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 140 | "/voltha/voltha/main.py", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 141 | "-v", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 142 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 143 | "--rest-port=8880", |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 144 | "--grpc-port=50556", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 145 | "--kafka=@kafka", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 146 | "--instance-id-is-container-name", |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 147 | "--interface=eth1", |
khenaidoo | 032d330 | 2017-06-09 14:50:04 -0400 | [diff] [blame] | 148 | "--backend=consul", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 149 | "-v" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 150 | ] |
| 151 | ports: |
| 152 | - 8880 |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 153 | - 50556 |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 154 | - 18880 |
rshetty | e4bd2ed | 2017-07-19 16:38:11 +0530 | [diff] [blame] | 155 | - "60001:60001" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 156 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 157 | - vconsul |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 158 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 159 | - vconsul |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 160 | environment: |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 161 | SERVICE_8880_NAME: "voltha-health" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 162 | SERVICE_8880_CHECK_HTTP: "/health" |
| 163 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 164 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 165 | SERVICE_18880_NAME: "voltha-sim-rest" |
Rajeswara Rao | 8af144c | 2017-08-18 14:01:06 +0530 | [diff] [blame] | 166 | SERVICE_HOST_IP: "${DOCKER_HOST_IP}" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 167 | volumes: |
| 168 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 169 | networks: |
| 170 | - default |
| 171 | - ponmgmt |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 172 | |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 173 | envoy: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 174 | image: "${REGISTRY}${REPOSITORY}voltha-envoy${TAG}" |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 175 | entrypoint: |
| 176 | - /usr/local/bin/envoyd |
| 177 | - -envoy-cfg-template |
| 178 | - "/envoy/voltha-grpc-proxy.template.json" |
| 179 | - -envoy-config |
| 180 | - "/envoy/voltha-grpc-proxy.json" |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 181 | - -consul-svc-nme |
| 182 | - "vconsul" |
| 183 | - -kv-svc-name |
| 184 | - "vconsul" |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 185 | ports: |
| 186 | - "50555:50555" |
| 187 | - "8882:8882" |
| 188 | - "8443:8443" |
| 189 | - "8001:8001" |
| 190 | environment: |
| 191 | SERVICE_50555_NAME: "voltha-grpc" |
| 192 | volumes: |
| 193 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 194 | networks: |
| 195 | - default |
| 196 | - ponmgmt |
| 197 | links: |
| 198 | - voltha:vcore |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 199 | # |
| 200 | # Voltha cli container |
| 201 | # |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 202 | cli: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 203 | image: "${REGISTRY}${REPOSITORY}voltha-cli${TAG}" |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 204 | command: [ |
| 205 | "/cli/cli/setup.sh", |
khenaidoo | 108f05c | 2017-07-06 11:15:29 -0400 | [diff] [blame] | 206 | "-L", |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 207 | "-C vconsul:8500", |
khenaidoo | 108f05c | 2017-07-06 11:15:29 -0400 | [diff] [blame] | 208 | "-G" |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 209 | ] |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 210 | environment: |
| 211 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 212 | ports: |
| 213 | - "5022:22" |
| 214 | depends_on: |
| 215 | - voltha |
| 216 | |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 217 | ############################################# |
| 218 | # Item below this line will soon be removed.# |
| 219 | ############################################# |
| 220 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 221 | # |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 222 | # ofagent server instance |
| 223 | # |
| 224 | ofagent: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 225 | image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 226 | logging: |
| 227 | driver: "json-file" |
| 228 | options: |
| 229 | max-size: "10m" |
| 230 | max-file: "3" |
| 231 | # Use the fluentd driver to push logs to fluentd instead |
| 232 | # driver: "fluentd" |
| 233 | # options: |
| 234 | # fluentd-address: ${DOCKER_HOST_IP}:24224 |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 235 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 236 | "/ofagent/ofagent/main.py", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 237 | "-v", |
| 238 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | ee5c4c8 | 2017-01-09 14:37:57 -0800 | [diff] [blame] | 239 | "--controller=${DOCKER_HOST_IP}:6653", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 240 | "--grpc-endpoint=@voltha-grpc", |
| 241 | "--instance-id-is-container-name", |
| 242 | "-v" |
| 243 | ] |
| 244 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 245 | - vconsul |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 246 | - voltha |
| 247 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 248 | - vconsul |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 249 | volumes: |
| 250 | - "/var/run/docker.sock:/tmp/docker.sock" |
alshabib | 06b449c | 2017-01-15 17:33:16 -0600 | [diff] [blame] | 251 | restart: unless-stopped |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 252 | |
| 253 | # |
| 254 | # Netconf server instance(s) |
| 255 | # |
| 256 | netconf: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 257 | image: "${REGISTRY}${REPOSITORY}voltha-netconf${TAG}" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 258 | logging: |
| 259 | driver: "json-file" |
| 260 | options: |
| 261 | max-size: "10m" |
| 262 | max-file: "3" |
| 263 | # Use the fluentd driver to push logs to fluentd instead |
| 264 | # driver: "fluentd" |
| 265 | # options: |
| 266 | # fluentd-address: ${DOCKER_HOST_IP}:24224 |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 267 | privileged: true |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 268 | command: [ |
| 269 | "/netconf/netconf/main.py", |
| 270 | "-v", |
| 271 | "--consul=${DOCKER_HOST_IP}:8500", |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 272 | "--grpc-endpoint=@voltha-grpc", |
| 273 | "--instance-id-is-container-name", |
| 274 | "-v" |
| 275 | ] |
| 276 | ports: |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 277 | - "830:1830" |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 278 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 279 | - vconsul |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 280 | - voltha |
| 281 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 282 | - vconsul |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 283 | environment: |
| 284 | SERVICE_1830_NAME: "netconf-server" |
| 285 | volumes: |
| 286 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 287 | |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 288 | # |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 289 | # Dashboard daemon |
| 290 | # |
| 291 | dashd: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 292 | image: "${REGISTRY}${REPOSITORY}voltha-dashd${TAG}" |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 293 | command: [ |
| 294 | "/dashd/dashd/main.py", |
| 295 | "--kafka=@kafka", |
| 296 | "--consul=${DOCKER_HOST_IP}:8500", |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 297 | "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8883/api", |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 298 | "--topic=voltha.kpis", |
| 299 | "--docker_host=${DOCKER_HOST_IP}" |
| 300 | ] |
| 301 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 302 | - vconsul |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 303 | - kafka |
| 304 | - grafana |
| 305 | restart: unless-stopped |
| 306 | |
| 307 | # |
| 308 | # Nginx service consolidation |
| 309 | # |
| 310 | nginx: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 311 | image: "${REGISTRY}${REPOSITORY}voltha-nginx${TAG}" |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 312 | ports: |
| 313 | - "80:80" |
| 314 | environment: |
| 315 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
| 316 | command: [ |
| 317 | "/nginx_config/start_service.sh" |
| 318 | ] |
| 319 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 320 | - vconsul |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 321 | - grafana |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 322 | - portainer |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 323 | restart: unless-stopped |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 324 | |
| 325 | # |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 326 | # Docker ui |
| 327 | # |
| 328 | portainer: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 329 | image: "${REGISTRY}${REPOSITORY}voltha-portainer${TAG}" |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 330 | ports: |
| 331 | - "9000:9000" |
| 332 | environment: |
| 333 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 334 | restart: unless-stopped |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 335 | entrypoint: ["/portainer", "--logo", "/docker/images/logo_alt.png"] |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 336 | volumes: |
| 337 | - "/var/run/docker.sock:/var/run/docker.sock" |
| 338 | |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 339 | networks: |
| 340 | default: |
| 341 | driver: bridge |
| 342 | ponmgmt: |
| 343 | driver: bridge |
| 344 | driver_opts: |
| 345 | com.docker.network.bridge.name: "ponmgmt" |