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" |
schowdhury | 87b2329 | 2017-06-01 07:14:11 -0700 | [diff] [blame] | 45 | volumes: |
| 46 | - "/cord/incubator/voltha/consul_config:/consul/config" |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 47 | # |
| 48 | # Registrator |
| 49 | # |
| 50 | registrator: |
| 51 | image: gliderlabs/registrator:latest |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 52 | command: [ |
| 53 | "-ip=${DOCKER_HOST_IP}", |
| 54 | "-retry-attempts", "100", |
| 55 | # "-internal", |
schowdhury | 9d027c0 | 2017-06-06 23:14:33 -0700 | [diff] [blame] | 56 | "consul://consul:8500" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 57 | ] |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 58 | links: |
| 59 | - consul |
| 60 | volumes: |
| 61 | - "/var/run/docker.sock:/tmp/docker.sock" |
schowdhury | 87b2329 | 2017-06-01 07:14:11 -0700 | [diff] [blame] | 62 | - "/cord/incubator/voltha/reg_config:/reg/config" |
| 63 | environment: |
| 64 | CONSUL_CACERT: "/reg/config/voltha-CA-template.pem" |
| 65 | CONSUL_TLSCERT: "/reg/config/voltha-cert-template.crt" |
| 66 | CONSUL_TLSKEY: "/reg/config/voltha-pvt-template.key" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 67 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 68 | # |
| 69 | # Fluentd log server |
| 70 | # |
| 71 | fluentd: |
| 72 | image: fluent/fluentd |
| 73 | ports: |
| 74 | - "24224:24224" |
| 75 | volumes: |
| 76 | - "/tmp/fluentd:/fluentd/log" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 77 | environment: |
| 78 | SERVICE_24224_NAME: "fluentd-intake" |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 79 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 80 | # |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 81 | # Graphite-Grafana-statsd service instance |
| 82 | # (demo place-holder for external KPI system) |
| 83 | # |
| 84 | grafana: |
Sergio Slobodrian | ba49158 | 2017-04-24 15:49:00 -0400 | [diff] [blame] | 85 | image: voltha/grafana |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 86 | ports: |
| 87 | - "8882:80" |
| 88 | - "2003:2003" |
| 89 | - "2004:2004" |
| 90 | - "8126:8126" |
| 91 | - "8125:8125/udp" |
| 92 | environment: |
| 93 | SERVICE_80_NAME: "grafana-web-ui" |
| 94 | SERVICE_2003_NAME: "carbon-plain-text-intake" |
| 95 | SERVICE_2004_NAME: "carbon-pickle-intake" |
| 96 | SERVICE_8126_NAME: "statsd-tcp-intake" |
| 97 | SERVICE_8125_NAME: "statsd-udp-intake" |
Sergio Slobodrian | ba49158 | 2017-04-24 15:49:00 -0400 | [diff] [blame] | 98 | GR_SERVER_ROOT_URL: "http://localhost:80/grafana/" |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 99 | |
| 100 | # |
| 101 | # Shovel (Kafka-graphite-gateway) |
| 102 | # |
| 103 | shovel: |
| 104 | image: cord/shovel |
| 105 | command: [ |
| 106 | "/shovel/shovel/main.py", |
| 107 | "--kafka=@kafka", |
| 108 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 1b7c036 | 2016-12-12 09:45:47 -0800 | [diff] [blame] | 109 | "--topic=voltha.kpis", |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 110 | "--host=${DOCKER_HOST_IP}" |
| 111 | ] |
| 112 | depends_on: |
| 113 | - consul |
| 114 | - kafka |
| 115 | - grafana |
alshabib | b634d90 | 2017-01-16 13:10:17 -0600 | [diff] [blame] | 116 | restart: unless-stopped |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 117 | |
| 118 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 119 | # Voltha server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 120 | # |
| 121 | voltha: |
| 122 | image: cord/voltha |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 123 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 124 | "/voltha/voltha/main.py", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 125 | "-v", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 126 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 127 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 128 | "--rest-port=8880", |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 129 | "--grpc-port=50555", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 130 | "--kafka=@kafka", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 131 | "--instance-id-is-container-name", |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 132 | "--interface=eth1", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 133 | "-v" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 134 | ] |
| 135 | ports: |
| 136 | - 8880 |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 137 | - 50555 |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 138 | - 18880 |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 139 | depends_on: |
| 140 | - consul |
| 141 | links: |
| 142 | - consul |
| 143 | - fluentd |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 144 | environment: |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 145 | SERVICE_8880_NAME: "voltha-health" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 146 | SERVICE_8880_CHECK_HTTP: "/health" |
| 147 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 148 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 149 | SERVICE_50555_NAME: "voltha-grpc" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 150 | SERVICE_18880_NAME: "voltha-sim-rest" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 151 | volumes: |
| 152 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 153 | networks: |
| 154 | - default |
| 155 | - ponmgmt |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 156 | |
Sergio Slobodrian | ab11c64 | 2017-04-24 07:16:58 -0400 | [diff] [blame] | 157 | # |
| 158 | # Voltha cli container |
| 159 | # |
| 160 | vcli: |
| 161 | image: cord/vcli |
| 162 | environment: |
| 163 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 164 | ports: |
| 165 | - "5022:22" |
| 166 | depends_on: |
| 167 | - voltha |
| 168 | |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 169 | ############################################# |
| 170 | # Item below this line will soon be removed.# |
| 171 | ############################################# |
| 172 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 173 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 174 | # Chameleon server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 175 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 176 | chameleon: |
| 177 | image: cord/chameleon |
| 178 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 179 | "/chameleon/chameleon/main.py", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 180 | "-v", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 181 | "--consul=consul:8500", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 182 | "--fluentd=fluentd:24224", |
| 183 | "--rest-port=8881", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 184 | "--grpc-endpoint=@voltha-grpc", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 185 | "--instance-id-is-container-name", |
| 186 | "-v" |
| 187 | ] |
| 188 | ports: |
| 189 | - 8881 |
| 190 | depends_on: |
| 191 | - consul |
Zsolt Haraszti | 034db37 | 2016-10-03 22:26:41 -0700 | [diff] [blame] | 192 | - voltha |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 193 | links: |
| 194 | - consul |
| 195 | - fluentd |
| 196 | environment: |
| 197 | SERVICE_8881_NAME: "chameleon-rest" |
| 198 | volumes: |
| 199 | - "/var/run/docker.sock:/tmp/docker.sock" |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 200 | # |
| 201 | # ofagent server instance |
| 202 | # |
| 203 | ofagent: |
| 204 | image: cord/ofagent |
| 205 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 206 | "/ofagent/ofagent/main.py", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 207 | "-v", |
| 208 | "--consul=${DOCKER_HOST_IP}:8500", |
| 209 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | ee5c4c8 | 2017-01-09 14:37:57 -0800 | [diff] [blame] | 210 | "--controller=${DOCKER_HOST_IP}:6653", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 211 | "--grpc-endpoint=@voltha-grpc", |
| 212 | "--instance-id-is-container-name", |
| 213 | "-v" |
| 214 | ] |
| 215 | depends_on: |
| 216 | - consul |
| 217 | - voltha |
| 218 | links: |
| 219 | - consul |
| 220 | - fluentd |
| 221 | volumes: |
| 222 | - "/var/run/docker.sock:/tmp/docker.sock" |
alshabib | 06b449c | 2017-01-15 17:33:16 -0600 | [diff] [blame] | 223 | restart: unless-stopped |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 224 | |
| 225 | # |
| 226 | # Netconf server instance(s) |
| 227 | # |
| 228 | netconf: |
| 229 | image: cord/netconf |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 230 | privileged: true |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 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: |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 241 | - "830:1830" |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 242 | depends_on: |
| 243 | - consul |
| 244 | - voltha |
| 245 | links: |
| 246 | - consul |
| 247 | - fluentd |
| 248 | environment: |
| 249 | SERVICE_1830_NAME: "netconf-server" |
| 250 | volumes: |
| 251 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 252 | |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 253 | # |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 254 | # Dashboard daemon |
| 255 | # |
| 256 | dashd: |
| 257 | image: cord/dashd |
| 258 | command: [ |
| 259 | "/dashd/dashd/main.py", |
| 260 | "--kafka=@kafka", |
| 261 | "--consul=${DOCKER_HOST_IP}:8500", |
| 262 | "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8882/api", |
| 263 | "--topic=voltha.kpis", |
| 264 | "--docker_host=${DOCKER_HOST_IP}" |
| 265 | ] |
| 266 | depends_on: |
| 267 | - consul |
| 268 | - kafka |
| 269 | - grafana |
| 270 | restart: unless-stopped |
| 271 | |
| 272 | # |
| 273 | # Nginx service consolidation |
| 274 | # |
| 275 | nginx: |
| 276 | image: voltha/nginx |
| 277 | ports: |
| 278 | - "80:80" |
| 279 | environment: |
| 280 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
| 281 | command: [ |
| 282 | "/nginx_config/start_service.sh" |
| 283 | ] |
| 284 | depends_on: |
| 285 | - consul |
| 286 | - grafana |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 287 | - chameleon |
| 288 | - portainer |
Sergio Slobodrian | ff52e1b | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 289 | restart: unless-stopped |
| 290 | volumes: |
| 291 | - "/cord/incubator/voltha/nginx_config:/nginx_config" |
| 292 | |
| 293 | # |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 294 | # Docker ui |
| 295 | # |
| 296 | portainer: |
| 297 | image: voltha/portainer |
| 298 | ports: |
| 299 | - "9000:9000" |
| 300 | environment: |
| 301 | CONSUL_ADDR: "${DOCKER_HOST_IP}:8500" |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 302 | restart: unless-stopped |
Sergio Slobodrian | d9ec600 | 2017-04-25 08:09:11 -0400 | [diff] [blame] | 303 | entrypoint: ["/portainer", "--logo", "/docker/images/logo_alt.png"] |
Sergio Slobodrian | 4d30710 | 2017-04-24 10:19:00 -0400 | [diff] [blame] | 304 | volumes: |
| 305 | - "/var/run/docker.sock:/var/run/docker.sock" |
| 306 | |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 307 | networks: |
| 308 | default: |
| 309 | driver: bridge |
| 310 | ponmgmt: |
| 311 | driver: bridge |
| 312 | driver_opts: |
| 313 | com.docker.network.bridge.name: "ponmgmt" |