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