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 | |
| 73 | # |
| 74 | # Podder service instance |
| 75 | # |
| 76 | podder: |
| 77 | image: cord/podder |
| 78 | volumes: |
| 79 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 80 | restart: unless-stopped |
| 81 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 82 | # |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 83 | # Graphite-Grafana-statsd service instance |
| 84 | # (demo place-holder for external KPI system) |
| 85 | # |
| 86 | grafana: |
| 87 | image: kamon/grafana_graphite |
| 88 | ports: |
| 89 | - "8882:80" |
| 90 | - "2003:2003" |
| 91 | - "2004:2004" |
| 92 | - "8126:8126" |
| 93 | - "8125:8125/udp" |
| 94 | environment: |
| 95 | SERVICE_80_NAME: "grafana-web-ui" |
| 96 | SERVICE_2003_NAME: "carbon-plain-text-intake" |
| 97 | SERVICE_2004_NAME: "carbon-pickle-intake" |
| 98 | SERVICE_8126_NAME: "statsd-tcp-intake" |
| 99 | SERVICE_8125_NAME: "statsd-udp-intake" |
| 100 | |
| 101 | # |
| 102 | # Shovel (Kafka-graphite-gateway) |
| 103 | # |
| 104 | shovel: |
| 105 | image: cord/shovel |
| 106 | command: [ |
| 107 | "/shovel/shovel/main.py", |
| 108 | "--kafka=@kafka", |
| 109 | "--consul=${DOCKER_HOST_IP}:8500", |
Zsolt Haraszti | 1b7c036 | 2016-12-12 09:45:47 -0800 | [diff] [blame] | 110 | "--topic=voltha.kpis", |
Zsolt Haraszti | aa4626e | 2016-12-08 16:53:06 -0800 | [diff] [blame] | 111 | "--host=${DOCKER_HOST_IP}" |
| 112 | ] |
| 113 | depends_on: |
| 114 | - consul |
| 115 | - kafka |
| 116 | - grafana |
| 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 | |
| 157 | ############################################# |
| 158 | # Item below this line will soon be removed.# |
| 159 | ############################################# |
| 160 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 161 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 162 | # Chameleon server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 163 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 164 | chameleon: |
| 165 | image: cord/chameleon |
| 166 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 167 | "/chameleon/chameleon/main.py", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 168 | "-v", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 169 | "--consul=consul:8500", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 170 | "--fluentd=fluentd:24224", |
| 171 | "--rest-port=8881", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 172 | "--grpc-endpoint=@voltha-grpc", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 173 | "--instance-id-is-container-name", |
| 174 | "-v" |
| 175 | ] |
| 176 | ports: |
| 177 | - 8881 |
| 178 | depends_on: |
| 179 | - consul |
Zsolt Haraszti | 034db37 | 2016-10-03 22:26:41 -0700 | [diff] [blame] | 180 | - voltha |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 181 | links: |
| 182 | - consul |
| 183 | - fluentd |
| 184 | environment: |
| 185 | SERVICE_8881_NAME: "chameleon-rest" |
| 186 | volumes: |
| 187 | - "/var/run/docker.sock:/tmp/docker.sock" |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 188 | # |
| 189 | # ofagent server instance |
| 190 | # |
| 191 | ofagent: |
| 192 | image: cord/ofagent |
| 193 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 194 | "/ofagent/ofagent/main.py", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 195 | "-v", |
| 196 | "--consul=${DOCKER_HOST_IP}:8500", |
| 197 | "--fluentd=fluentd:24224", |
Khen Nursimulu | f309e2c | 2016-10-25 14:36:21 -0400 | [diff] [blame] | 198 | "--controller=${DOCKER_HOST_IP}:6633", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 199 | "--grpc-endpoint=@voltha-grpc", |
| 200 | "--instance-id-is-container-name", |
| 201 | "-v" |
| 202 | ] |
| 203 | depends_on: |
| 204 | - consul |
| 205 | - voltha |
| 206 | links: |
| 207 | - consul |
| 208 | - fluentd |
| 209 | volumes: |
| 210 | - "/var/run/docker.sock:/tmp/docker.sock" |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 211 | |
| 212 | # |
| 213 | # Netconf server instance(s) |
| 214 | # |
| 215 | netconf: |
| 216 | image: cord/netconf |
| 217 | command: [ |
| 218 | "/netconf/netconf/main.py", |
| 219 | "-v", |
| 220 | "--consul=${DOCKER_HOST_IP}:8500", |
| 221 | "--fluentd=fluentd:24224", |
| 222 | "--grpc-endpoint=@voltha-grpc", |
| 223 | "--instance-id-is-container-name", |
| 224 | "-v" |
| 225 | ] |
| 226 | ports: |
| 227 | - "1830:1830" |
| 228 | depends_on: |
| 229 | - consul |
| 230 | - voltha |
| 231 | links: |
| 232 | - consul |
| 233 | - fluentd |
| 234 | environment: |
| 235 | SERVICE_1830_NAME: "netconf-server" |
| 236 | volumes: |
| 237 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 238 | |
Zsolt Haraszti | 9b485fb | 2016-12-26 23:11:15 -0800 | [diff] [blame] | 239 | networks: |
| 240 | default: |
| 241 | driver: bridge |
| 242 | ponmgmt: |
| 243 | driver: bridge |
| 244 | driver_opts: |
| 245 | com.docker.network.bridge.name: "ponmgmt" |