Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | # |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 4 | # Single-node zookeeper service |
| 5 | # |
| 6 | zookeeper: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 7 | image: "${REGISTRY}wurstmeister/zookeeper:latest" |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 8 | ports: |
Khen Nursimulu | da11dd7 | 2016-10-05 17:42:36 -0700 | [diff] [blame] | 9 | - 2181 |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 10 | environment: |
| 11 | SERVICE_2181_NAME: "zookeeper" |
| 12 | # |
| 13 | # Single-node kafka service |
| 14 | # |
| 15 | kafka: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 16 | image: "${REGISTRY}wurstmeister/kafka:latest" |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 17 | ports: |
Khen Nursimulu | da11dd7 | 2016-10-05 17:42:36 -0700 | [diff] [blame] | 18 | - 9092 |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 19 | environment: |
| 20 | KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP} |
| 21 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 22 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
Khen Nursimulu | 34e7ebb | 2016-11-10 13:38:44 -0800 | [diff] [blame] | 23 | KAFKA_HEAP_OPTS: "-Xmx256M -Xms128M" |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 24 | SERVICE_9092_NAME: "kafka" |
| 25 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 26 | - vconsul |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 27 | volumes: |
| 28 | - /var/run/docker.sock:/var/run/docker.sock |
| 29 | # |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 30 | # Single-node consul agent |
| 31 | # |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 32 | vconsul: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 33 | image: "${REGISTRY}consul:0.9.2" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 34 | command: agent -server -bootstrap -client 0.0.0.0 -ui |
| 35 | ports: |
| 36 | - "8300:8300" |
| 37 | - "8400:8400" |
| 38 | - "8500:8500" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 39 | - "8600:8600/udp" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 40 | environment: |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 41 | #SERVICE_53_IGNORE: "yes" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 42 | SERVICE_8300_IGNORE: "yes" |
| 43 | SERVICE_8400_IGNORE: "yes" |
| 44 | SERVICE_8500_NAME: "consul-rest" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 45 | # |
| 46 | # Registrator |
| 47 | # |
| 48 | registrator: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 49 | image: "${REGISTRY}gliderlabs/registrator:latest" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 50 | command: [ |
| 51 | "-ip=${DOCKER_HOST_IP}", |
| 52 | "-retry-attempts", "100", |
khenaidoo | 032d330 | 2017-06-09 14:50:04 -0400 | [diff] [blame] | 53 | "-cleanup", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 54 | # "-internal", |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 55 | "consul://vconsul:8500" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 56 | ] |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 57 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 58 | - vconsul |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 59 | volumes: |
| 60 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 61 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 62 | # |
| 63 | # Fluentd log server |
| 64 | # |
| 65 | fluentd: |
David K. Bainbridge | 0910489 | 2018-01-24 12:27:33 -0800 | [diff] [blame] | 66 | image: "${REGISTRY}fluent/fluentd:v0.12.42" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 67 | ports: |
| 68 | - "24224:24224" |
| 69 | volumes: |
| 70 | - "/tmp/fluentd:/fluentd/log" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 71 | environment: |
| 72 | SERVICE_24224_NAME: "fluentd-intake" |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 73 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 74 | # |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 75 | # Graphite-Grafana-statsd service instance |
| 76 | # (demo place-holder for external KPI system) |
| 77 | # |
| 78 | grafana: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 79 | image: "${REGISTRY}${REPOSITORY}voltha-grafana${TAG}" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 80 | ports: |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 81 | - "8883:80" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 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" |
Sergio Slobodrian | ba49158 | 2017-04-24 15:49:00 -0400 | [diff] [blame] | 92 | GR_SERVER_ROOT_URL: "http://localhost:80/grafana/" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 93 | |
| 94 | # |
| 95 | # Shovel (Kafka-graphite-gateway) |
| 96 | # |
| 97 | shovel: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 98 | image: "${REGISTRY}${REPOSITORY}voltha-shovel${TAG}" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 99 | command: [ |
| 100 | "/shovel/shovel/main.py", |
| 101 | "--kafka=@kafka", |
| 102 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 1b7c036 | 2016-12-12 09:45:47 -0800 | [diff] [blame] | 103 | "--topic=voltha.kpis", |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 104 | "--host=${DOCKER_HOST_IP}" |
| 105 | ] |
| 106 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 107 | - vconsul |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 108 | - kafka |
| 109 | - grafana |
alshabib | b634d90 | 2017-01-16 13:10:17 -0600 | [diff] [blame] | 110 | restart: unless-stopped |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 111 | |
| 112 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 113 | # Voltha server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 114 | # |
| 115 | voltha: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 116 | image: "${REGISTRY}${REPOSITORY}voltha-voltha${TAG}" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 117 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 118 | "/voltha/voltha/main.py", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 119 | "-v", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 120 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 121 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 122 | "--rest-port=8880", |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 123 | "--grpc-port=50556", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 124 | "--kafka=@kafka", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 125 | "--instance-id-is-container-name", |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 126 | "--interface=eth1", |
khenaidoo | 032d330 | 2017-06-09 14:50:04 -0400 | [diff] [blame] | 127 | "--backend=consul", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 128 | "-v" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 129 | ] |
| 130 | ports: |
| 131 | - 8880 |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 132 | - 50556 |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 133 | - 18880 |
rshetty | e4bd2ed | 2017-07-19 16:38:11 +0530 | [diff] [blame] | 134 | - "60001:60001" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 135 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 136 | - vconsul |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 137 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 138 | - vconsul |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 139 | - fluentd |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 140 | environment: |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 141 | SERVICE_8880_NAME: "voltha-health" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 142 | SERVICE_8880_CHECK_HTTP: "/health" |
| 143 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 144 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 145 | SERVICE_18880_NAME: "voltha-sim-rest" |
Rajeswara Rao | 8af144c | 2017-08-18 14:01:06 +0530 | [diff] [blame] | 146 | SERVICE_HOST_IP: "${DOCKER_HOST_IP}" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 147 | volumes: |
| 148 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 149 | networks: |
| 150 | - default |
| 151 | - ponmgmt |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 152 | |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 153 | envoy: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 154 | image: "${REGISTRY}${REPOSITORY}voltha-envoy${TAG}" |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 155 | 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 Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 161 | - -consul-svc-nme |
| 162 | - "vconsul" |
| 163 | - -kv-svc-name |
| 164 | - "vconsul" |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 165 | 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 |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 179 | # |
| 180 | # Voltha cli container |
| 181 | # |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 182 | cli: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 183 | image: "${REGISTRY}${REPOSITORY}voltha-cli${TAG}" |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 184 | command: [ |
| 185 | "/cli/cli/setup.sh", |
khenaidoo | 108f05c | 2017-07-06 11:15:29 -0400 | [diff] [blame] | 186 | "-L", |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 187 | "-C vconsul:8500", |
khenaidoo | 108f05c | 2017-07-06 11:15:29 -0400 | [diff] [blame] | 188 | "-G" |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 189 | ] |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 190 | environment: |
| 191 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 192 | ports: |
| 193 | - "5022:22" |
| 194 | depends_on: |
| 195 | - voltha |
| 196 | |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 197 | ############################################# |
| 198 | # Item below this line will soon be removed.# |
| 199 | ############################################# |
| 200 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 201 | # |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 202 | # ofagent server instance |
| 203 | # |
| 204 | ofagent: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 205 | image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}" |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 206 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 207 | "/ofagent/ofagent/main.py", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 208 | "-v", |
| 209 | "--consul=${DOCKER_HOST_IP}:8500", |
| 210 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | ee5c4c8 | 2017-01-09 14:37:57 -0800 | [diff] [blame] | 211 | "--controller=${DOCKER_HOST_IP}:6653", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 212 | "--grpc-endpoint=@voltha-grpc", |
| 213 | "--instance-id-is-container-name", |
Girish | f6eeaea | 2017-11-13 10:53:57 +0530 | [diff] [blame] | 214 | "--enable-tls", |
| 215 | "--key-file=/ofagent/pki/voltha.key", |
| 216 | "--cert-file=/ofagent/pki/voltha.crt", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 217 | "-v" |
| 218 | ] |
| 219 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 220 | - vconsul |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 221 | - voltha |
| 222 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 223 | - vconsul |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 224 | - fluentd |
| 225 | volumes: |
| 226 | - "/var/run/docker.sock:/tmp/docker.sock" |
alshabib | 06b449c | 2017-01-15 17:33:16 -0600 | [diff] [blame] | 227 | restart: unless-stopped |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 228 | |
| 229 | # |
| 230 | # Netconf server instance(s) |
| 231 | # |
| 232 | netconf: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 233 | image: "${REGISTRY}${REPOSITORY}voltha-netconf${TAG}" |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 234 | privileged: true |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 235 | command: [ |
| 236 | "/netconf/netconf/main.py", |
| 237 | "-v", |
| 238 | "--consul=${DOCKER_HOST_IP}:8500", |
| 239 | "--fluentd=fluentd:24224", |
| 240 | "--grpc-endpoint=@voltha-grpc", |
| 241 | "--instance-id-is-container-name", |
| 242 | "-v" |
| 243 | ] |
| 244 | ports: |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 245 | - "830:1830" |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 246 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 247 | - vconsul |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 248 | - voltha |
| 249 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 250 | - vconsul |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 251 | - fluentd |
| 252 | environment: |
| 253 | SERVICE_1830_NAME: "netconf-server" |
| 254 | volumes: |
| 255 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 256 | |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 257 | # |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 258 | # Dashboard daemon |
| 259 | # |
| 260 | dashd: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 261 | image: "${REGISTRY}${REPOSITORY}voltha-dashd${TAG}" |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 262 | command: [ |
| 263 | "/dashd/dashd/main.py", |
| 264 | "--kafka=@kafka", |
| 265 | "--consul=${DOCKER_HOST_IP}:8500", |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 266 | "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8883/api", |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 267 | "--topic=voltha.kpis", |
| 268 | "--docker_host=${DOCKER_HOST_IP}" |
| 269 | ] |
| 270 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 271 | - vconsul |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 272 | - kafka |
| 273 | - grafana |
| 274 | restart: unless-stopped |
| 275 | |
| 276 | # |
| 277 | # Nginx service consolidation |
| 278 | # |
| 279 | nginx: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 280 | image: "${REGISTRY}${REPOSITORY}voltha-nginx${TAG}" |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 281 | ports: |
| 282 | - "80:80" |
| 283 | environment: |
| 284 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
| 285 | command: [ |
| 286 | "/nginx_config/start_service.sh" |
| 287 | ] |
| 288 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 289 | - vconsul |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 290 | - grafana |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 291 | - portainer |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 292 | restart: unless-stopped |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 293 | |
| 294 | # |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 295 | # Docker ui |
| 296 | # |
| 297 | portainer: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 298 | image: "${REGISTRY}${REPOSITORY}voltha-portainer${TAG}" |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 299 | ports: |
| 300 | - "9000:9000" |
| 301 | environment: |
| 302 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 303 | restart: unless-stopped |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 304 | entrypoint: ["/portainer", "--logo", "/docker/images/logo_alt.png"] |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 305 | volumes: |
| 306 | - "/var/run/docker.sock:/var/run/docker.sock" |
| 307 | |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 308 | networks: |
| 309 | default: |
| 310 | driver: bridge |
| 311 | ponmgmt: |
| 312 | driver: bridge |
| 313 | driver_opts: |
| 314 | com.docker.network.bridge.name: "ponmgmt" |