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: |
| 7 | image: wurstmeister/zookeeper |
| 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: |
Khen Nursimulu | 74c1ef0 | 2016-10-12 21:17:42 -0400 | [diff] [blame] | 16 | image: wurstmeister/kafka |
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: |
| 26 | - consul |
| 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 | # |
| 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 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: |
| 49 | image: 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", |
schowdhury | 9d027c0 | 2017-06-06 23:14:33 -0700 | [diff] [blame] | 55 | "consul://consul: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: |
| 58 | - consul |
| 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: |
| 66 | image: fluent/fluentd |
| 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: |
Sergio Slobodrian | ba49158 | 2017-04-24 15:49:00 -0400 | [diff] [blame] | 79 | image: voltha/grafana |
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: |
| 98 | image: cord/shovel |
| 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: |
| 107 | - consul |
| 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: |
| 116 | image: cord/voltha |
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: |
| 136 | - consul |
| 137 | links: |
| 138 | - consul |
| 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: |
| 154 | image: voltha/envoy |
| 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" |
| 161 | ports: |
| 162 | - "50555:50555" |
| 163 | - "8882:8882" |
| 164 | - "8443:8443" |
| 165 | - "8001:8001" |
| 166 | environment: |
| 167 | SERVICE_50555_NAME: "voltha-grpc" |
| 168 | volumes: |
| 169 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 170 | networks: |
| 171 | - default |
| 172 | - ponmgmt |
| 173 | links: |
| 174 | - voltha:vcore |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 175 | # |
| 176 | # Voltha cli container |
| 177 | # |
| 178 | vcli: |
| 179 | image: cord/vcli |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 180 | command: [ |
| 181 | "/cli/cli/setup.sh", |
khenaidoo | 108f05c | 2017-07-06 11:15:29 -0400 | [diff] [blame] | 182 | "-L", |
| 183 | "-G" |
Richard Jankowski | 29dd198 | 2017-06-28 13:30:18 -0400 | [diff] [blame] | 184 | ] |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 185 | environment: |
| 186 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 187 | ports: |
| 188 | - "5022:22" |
| 189 | depends_on: |
| 190 | - voltha |
| 191 | |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 192 | ############################################# |
| 193 | # Item below this line will soon be removed.# |
| 194 | ############################################# |
| 195 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 196 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 197 | # Chameleon server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 198 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 199 | chameleon: |
| 200 | image: cord/chameleon |
| 201 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 202 | "/chameleon/chameleon/main.py", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 203 | "-v", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 204 | "--consul=consul:8500", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 205 | "--fluentd=fluentd:24224", |
| 206 | "--rest-port=8881", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 207 | "--grpc-endpoint=@voltha-grpc", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 208 | "--instance-id-is-container-name", |
| 209 | "-v" |
| 210 | ] |
| 211 | ports: |
| 212 | - 8881 |
| 213 | depends_on: |
| 214 | - consul |
Zsolt Haraszti | 034db37 | 2016-10-03 22:26:41 -0700 | [diff] [blame] | 215 | - voltha |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 216 | links: |
| 217 | - consul |
| 218 | - fluentd |
| 219 | environment: |
| 220 | SERVICE_8881_NAME: "chameleon-rest" |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 221 | ENABLE_TLS: "False" |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 222 | volumes: |
| 223 | - "/var/run/docker.sock:/tmp/docker.sock" |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 224 | # |
| 225 | # ofagent server instance |
| 226 | # |
| 227 | ofagent: |
| 228 | image: cord/ofagent |
| 229 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 230 | "/ofagent/ofagent/main.py", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 231 | "-v", |
| 232 | "--consul=${DOCKER_HOST_IP}:8500", |
| 233 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | ee5c4c8 | 2017-01-09 14:37:57 -0800 | [diff] [blame] | 234 | "--controller=${DOCKER_HOST_IP}:6653", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 235 | "--grpc-endpoint=@voltha-grpc", |
| 236 | "--instance-id-is-container-name", |
| 237 | "-v" |
| 238 | ] |
| 239 | depends_on: |
| 240 | - consul |
| 241 | - voltha |
| 242 | links: |
| 243 | - consul |
| 244 | - fluentd |
| 245 | volumes: |
| 246 | - "/var/run/docker.sock:/tmp/docker.sock" |
alshabib | 06b449c | 2017-01-15 17:33:16 -0600 | [diff] [blame] | 247 | restart: unless-stopped |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 248 | |
| 249 | # |
| 250 | # Netconf server instance(s) |
| 251 | # |
| 252 | netconf: |
| 253 | image: cord/netconf |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 254 | privileged: true |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 255 | command: [ |
| 256 | "/netconf/netconf/main.py", |
| 257 | "-v", |
| 258 | "--consul=${DOCKER_HOST_IP}:8500", |
| 259 | "--fluentd=fluentd:24224", |
| 260 | "--grpc-endpoint=@voltha-grpc", |
| 261 | "--instance-id-is-container-name", |
| 262 | "-v" |
| 263 | ] |
| 264 | ports: |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 265 | - "830:1830" |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 266 | depends_on: |
| 267 | - consul |
| 268 | - voltha |
| 269 | links: |
| 270 | - consul |
| 271 | - fluentd |
| 272 | environment: |
| 273 | SERVICE_1830_NAME: "netconf-server" |
| 274 | volumes: |
| 275 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 276 | |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 277 | # |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 278 | # Dashboard daemon |
| 279 | # |
| 280 | dashd: |
| 281 | image: cord/dashd |
| 282 | command: [ |
| 283 | "/dashd/dashd/main.py", |
| 284 | "--kafka=@kafka", |
| 285 | "--consul=${DOCKER_HOST_IP}:8500", |
Sergio Slobodrian | 4f14a74 | 2017-08-23 21:53:10 -0400 | [diff] [blame] | 286 | "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8883/api", |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 287 | "--topic=voltha.kpis", |
| 288 | "--docker_host=${DOCKER_HOST_IP}" |
| 289 | ] |
| 290 | depends_on: |
| 291 | - consul |
| 292 | - kafka |
| 293 | - grafana |
| 294 | restart: unless-stopped |
| 295 | |
| 296 | # |
| 297 | # Nginx service consolidation |
| 298 | # |
| 299 | nginx: |
| 300 | image: voltha/nginx |
| 301 | ports: |
| 302 | - "80:80" |
| 303 | environment: |
| 304 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
| 305 | command: [ |
| 306 | "/nginx_config/start_service.sh" |
| 307 | ] |
| 308 | depends_on: |
| 309 | - consul |
| 310 | - grafana |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 311 | - chameleon |
| 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: |
| 319 | image: voltha/portainer |
| 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" |