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}" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 117 | logging: |
| 118 | driver: "json-file" |
| 119 | options: |
| 120 | max-size: "10m" |
| 121 | max-file: "3" |
| 122 | # Use the fluentd driver to push logs to fluentd instead |
| 123 | # driver: "fluentd" |
| 124 | # options: |
| 125 | # fluentd-address: ${DOCKER_HOST_IP}:24224 |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 126 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 127 | "/voltha/voltha/main.py", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 128 | "-v", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 129 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 130 | "--rest-port=8880", |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 131 | "--grpc-port=50556", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 132 | "--kafka=@kafka", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 133 | "--instance-id-is-container-name", |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 134 | "--interface=eth1", |
khenaidoo | 032d330 | 2017-06-09 14:50:04 -0400 | [diff] [blame] | 135 | "--backend=consul", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 136 | "-v" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 137 | ] |
| 138 | ports: |
| 139 | - 8880 |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 140 | - 50556 |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 141 | - 18880 |
rshetty | e4bd2ed | 2017-07-19 16:38:11 +0530 | [diff] [blame] | 142 | - "60001:60001" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 143 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 144 | - vconsul |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 145 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 146 | - vconsul |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 147 | environment: |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 148 | SERVICE_8880_NAME: "voltha-health" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 149 | SERVICE_8880_CHECK_HTTP: "/health" |
| 150 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 151 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 152 | SERVICE_18880_NAME: "voltha-sim-rest" |
Rajeswara Rao | 8af144c | 2017-08-18 14:01:06 +0530 | [diff] [blame] | 153 | SERVICE_HOST_IP: "${DOCKER_HOST_IP}" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 154 | volumes: |
| 155 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 156 | networks: |
| 157 | - default |
| 158 | - ponmgmt |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 159 | |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 160 | envoy: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 161 | image: "${REGISTRY}${REPOSITORY}voltha-envoy${TAG}" |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 162 | entrypoint: |
| 163 | - /usr/local/bin/envoyd |
| 164 | - -envoy-cfg-template |
| 165 | - "/envoy/voltha-grpc-proxy.template.json" |
| 166 | - -envoy-config |
| 167 | - "/envoy/voltha-grpc-proxy.json" |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 168 | - -consul-svc-nme |
| 169 | - "vconsul" |
| 170 | - -kv-svc-name |
| 171 | - "vconsul" |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 172 | ports: |
| 173 | - "50555:50555" |
| 174 | - "8882:8882" |
| 175 | - "8443:8443" |
| 176 | - "8001:8001" |
| 177 | environment: |
| 178 | SERVICE_50555_NAME: "voltha-grpc" |
| 179 | volumes: |
| 180 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 181 | networks: |
| 182 | - default |
| 183 | - ponmgmt |
| 184 | links: |
| 185 | - voltha:vcore |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 186 | # |
| 187 | # Voltha cli container |
| 188 | # |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 189 | cli: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 190 | image: "${REGISTRY}${REPOSITORY}voltha-cli${TAG}" |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 191 | command: [ |
| 192 | "/cli/cli/setup.sh", |
khenaidoo | 108f05c | 2017-07-06 11:15:29 -0400 | [diff] [blame] | 193 | "-L", |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 194 | "-C vconsul:8500", |
khenaidoo | 108f05c | 2017-07-06 11:15:29 -0400 | [diff] [blame] | 195 | "-G" |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 196 | ] |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 197 | environment: |
| 198 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 199 | ports: |
| 200 | - "5022:22" |
| 201 | depends_on: |
| 202 | - voltha |
| 203 | |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 204 | ############################################# |
| 205 | # Item below this line will soon be removed.# |
| 206 | ############################################# |
| 207 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 208 | # |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 209 | # ofagent server instance |
| 210 | # |
| 211 | ofagent: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 212 | image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 213 | logging: |
| 214 | driver: "json-file" |
| 215 | options: |
| 216 | max-size: "10m" |
| 217 | max-file: "3" |
| 218 | # Use the fluentd driver to push logs to fluentd instead |
| 219 | # driver: "fluentd" |
| 220 | # options: |
| 221 | # fluentd-address: ${DOCKER_HOST_IP}:24224 |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 222 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 223 | "/ofagent/ofagent/main.py", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 224 | "-v", |
| 225 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | ee5c4c8 | 2017-01-09 14:37:57 -0800 | [diff] [blame] | 226 | "--controller=${DOCKER_HOST_IP}:6653", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 227 | "--grpc-endpoint=@voltha-grpc", |
| 228 | "--instance-id-is-container-name", |
Girish | f6eeaea | 2017-11-13 10:53:57 +0530 | [diff] [blame] | 229 | "--enable-tls", |
| 230 | "--key-file=/ofagent/pki/voltha.key", |
| 231 | "--cert-file=/ofagent/pki/voltha.crt", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 232 | "-v" |
| 233 | ] |
| 234 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 235 | - vconsul |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 236 | - voltha |
| 237 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 238 | - vconsul |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 239 | volumes: |
| 240 | - "/var/run/docker.sock:/tmp/docker.sock" |
alshabib | 06b449c | 2017-01-15 17:33:16 -0600 | [diff] [blame] | 241 | restart: unless-stopped |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 242 | |
| 243 | # |
| 244 | # Netconf server instance(s) |
| 245 | # |
| 246 | netconf: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 247 | image: "${REGISTRY}${REPOSITORY}voltha-netconf${TAG}" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 248 | logging: |
| 249 | driver: "json-file" |
| 250 | options: |
| 251 | max-size: "10m" |
| 252 | max-file: "3" |
| 253 | # Use the fluentd driver to push logs to fluentd instead |
| 254 | # driver: "fluentd" |
| 255 | # options: |
| 256 | # fluentd-address: ${DOCKER_HOST_IP}:24224 |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 257 | privileged: true |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 258 | command: [ |
| 259 | "/netconf/netconf/main.py", |
| 260 | "-v", |
| 261 | "--consul=${DOCKER_HOST_IP}:8500", |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 262 | "--grpc-endpoint=@voltha-grpc", |
| 263 | "--instance-id-is-container-name", |
| 264 | "-v" |
| 265 | ] |
| 266 | ports: |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 267 | - "830:1830" |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 268 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 269 | - vconsul |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 270 | - voltha |
| 271 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 272 | - vconsul |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 273 | environment: |
| 274 | SERVICE_1830_NAME: "netconf-server" |
| 275 | volumes: |
| 276 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 277 | |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 278 | # |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 279 | # Dashboard daemon |
| 280 | # |
| 281 | dashd: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 282 | image: "${REGISTRY}${REPOSITORY}voltha-dashd${TAG}" |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 283 | command: [ |
| 284 | "/dashd/dashd/main.py", |
| 285 | "--kafka=@kafka", |
| 286 | "--consul=${DOCKER_HOST_IP}:8500", |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 287 | "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8883/api", |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 288 | "--topic=voltha.kpis", |
| 289 | "--docker_host=${DOCKER_HOST_IP}" |
| 290 | ] |
| 291 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 292 | - vconsul |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 293 | - kafka |
| 294 | - grafana |
| 295 | restart: unless-stopped |
| 296 | |
| 297 | # |
| 298 | # Nginx service consolidation |
| 299 | # |
| 300 | nginx: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 301 | image: "${REGISTRY}${REPOSITORY}voltha-nginx${TAG}" |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 302 | ports: |
| 303 | - "80:80" |
| 304 | environment: |
| 305 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
| 306 | command: [ |
| 307 | "/nginx_config/start_service.sh" |
| 308 | ] |
| 309 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 310 | - vconsul |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 311 | - grafana |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 312 | - portainer |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 313 | restart: unless-stopped |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 314 | |
| 315 | # |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 316 | # Docker ui |
| 317 | # |
| 318 | portainer: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 319 | image: "${REGISTRY}${REPOSITORY}voltha-portainer${TAG}" |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 320 | ports: |
| 321 | - "9000:9000" |
| 322 | environment: |
| 323 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 324 | restart: unless-stopped |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 325 | entrypoint: ["/portainer", "--logo", "/docker/images/logo_alt.png"] |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 326 | volumes: |
| 327 | - "/var/run/docker.sock:/var/run/docker.sock" |
| 328 | |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 329 | networks: |
| 330 | default: |
| 331 | driver: bridge |
| 332 | ponmgmt: |
| 333 | driver: bridge |
| 334 | driver_opts: |
| 335 | com.docker.network.bridge.name: "ponmgmt" |