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: |
| 78 | image: kamon/grafana_graphite |
| 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" |
| 91 | |
| 92 | # |
| 93 | # Shovel (Kafka-graphite-gateway) |
| 94 | # |
| 95 | shovel: |
| 96 | image: cord/shovel |
| 97 | command: [ |
| 98 | "/shovel/shovel/main.py", |
| 99 | "--kafka=@kafka", |
| 100 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 1b7c036 | 2016-12-12 09:45:47 -0800 | [diff] [blame] | 101 | "--topic=voltha.kpis", |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 102 | "--host=${DOCKER_HOST_IP}" |
| 103 | ] |
| 104 | depends_on: |
| 105 | - consul |
| 106 | - kafka |
| 107 | - grafana |
| 108 | |
| 109 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 110 | # Voltha server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 111 | # |
| 112 | voltha: |
| 113 | image: cord/voltha |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 114 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 115 | "/voltha/voltha/main.py", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 116 | "-v", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 117 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 118 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 119 | "--rest-port=8880", |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 120 | "--grpc-port=50555", |
khen | b95fe9a | 2016-10-05 11:15:25 -0700 | [diff] [blame] | 121 | "--kafka=@kafka", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 122 | "--instance-id-is-container-name", |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 123 | "--interface=eth1", |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 124 | "-v" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 125 | ] |
| 126 | ports: |
| 127 | - 8880 |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 128 | - 50555 |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 129 | - 18880 |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 130 | depends_on: |
| 131 | - consul |
| 132 | links: |
| 133 | - consul |
| 134 | - fluentd |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 135 | environment: |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 136 | SERVICE_8880_NAME: "voltha-health" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 137 | SERVICE_8880_CHECK_HTTP: "/health" |
| 138 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 139 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 140 | SERVICE_50555_NAME: "voltha-grpc" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 141 | SERVICE_18880_NAME: "voltha-sim-rest" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 142 | volumes: |
| 143 | - "/var/run/docker.sock:/tmp/docker.sock" |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 144 | networks: |
| 145 | - default |
| 146 | - ponmgmt |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 147 | |
| 148 | ############################################# |
| 149 | # Item below this line will soon be removed.# |
| 150 | ############################################# |
| 151 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 152 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 153 | # Chameleon server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 154 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 155 | chameleon: |
| 156 | image: cord/chameleon |
| 157 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 158 | "/chameleon/chameleon/main.py", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 159 | "-v", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 160 | "--consul=consul:8500", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 161 | "--fluentd=fluentd:24224", |
| 162 | "--rest-port=8881", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 163 | "--grpc-endpoint=@voltha-grpc", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 164 | "--instance-id-is-container-name", |
| 165 | "-v" |
| 166 | ] |
| 167 | ports: |
| 168 | - 8881 |
| 169 | depends_on: |
| 170 | - consul |
Zsolt Haraszti | 034db37 | 2016-10-03 22:26:41 -0700 | [diff] [blame] | 171 | - voltha |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 172 | links: |
| 173 | - consul |
| 174 | - fluentd |
| 175 | environment: |
| 176 | SERVICE_8881_NAME: "chameleon-rest" |
| 177 | volumes: |
| 178 | - "/var/run/docker.sock:/tmp/docker.sock" |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 179 | # |
| 180 | # ofagent server instance |
| 181 | # |
| 182 | ofagent: |
| 183 | image: cord/ofagent |
| 184 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 185 | "/ofagent/ofagent/main.py", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 186 | "-v", |
| 187 | "--consul=${DOCKER_HOST_IP}:8500", |
| 188 | "--fluentd=fluentd:24224", |
Zsolt Haraszti | ee5c4c8 | 2017-01-09 14:37:57 -0800 | [diff] [blame] | 189 | "--controller=${DOCKER_HOST_IP}:6653", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 190 | "--grpc-endpoint=@voltha-grpc", |
| 191 | "--instance-id-is-container-name", |
| 192 | "-v" |
| 193 | ] |
| 194 | depends_on: |
| 195 | - consul |
| 196 | - voltha |
| 197 | links: |
| 198 | - consul |
| 199 | - fluentd |
| 200 | volumes: |
| 201 | - "/var/run/docker.sock:/tmp/docker.sock" |
alshabib | 06b449c | 2017-01-15 17:33:16 -0600 | [diff] [blame] | 202 | restart: unless-stopped |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 203 | |
| 204 | # |
| 205 | # Netconf server instance(s) |
| 206 | # |
| 207 | netconf: |
| 208 | image: cord/netconf |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 209 | privileged: true |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 210 | command: [ |
| 211 | "/netconf/netconf/main.py", |
| 212 | "-v", |
| 213 | "--consul=${DOCKER_HOST_IP}:8500", |
| 214 | "--fluentd=fluentd:24224", |
| 215 | "--grpc-endpoint=@voltha-grpc", |
| 216 | "--instance-id-is-container-name", |
| 217 | "-v" |
| 218 | ] |
| 219 | ports: |
Khen Nursimulu | b4e7147 | 2017-01-06 18:05:47 -0500 | [diff] [blame] | 220 | - "830:1830" |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 221 | depends_on: |
| 222 | - consul |
| 223 | - voltha |
| 224 | links: |
| 225 | - consul |
| 226 | - fluentd |
| 227 | environment: |
| 228 | SERVICE_1830_NAME: "netconf-server" |
| 229 | volumes: |
| 230 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 231 | |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 232 | networks: |
| 233 | default: |
| 234 | driver: bridge |
| 235 | ponmgmt: |
| 236 | driver: bridge |
| 237 | driver_opts: |
| 238 | com.docker.network.bridge.name: "ponmgmt" |