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", |
| 132 | "-v" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 133 | ] |
| 134 | ports: |
| 135 | - 8880 |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 136 | - 50555 |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 137 | depends_on: |
| 138 | - consul |
| 139 | links: |
| 140 | - consul |
| 141 | - fluentd |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 142 | environment: |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 143 | SERVICE_8880_NAME: "voltha-health" |
Zsolt Haraszti | 3d55292 | 2016-09-14 22:26:34 -0700 | [diff] [blame] | 144 | SERVICE_8880_CHECK_HTTP: "/health" |
| 145 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 146 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
Zsolt Haraszti | 4536335 | 2016-09-27 10:32:18 -0700 | [diff] [blame] | 147 | SERVICE_50555_NAME: "voltha-grpc" |
Zsolt Haraszti | e060a7d | 2016-09-16 11:08:24 -0700 | [diff] [blame] | 148 | volumes: |
| 149 | - "/var/run/docker.sock:/tmp/docker.sock" |
alshabib | 7941d40 | 2016-11-08 00:11:20 +0100 | [diff] [blame] | 150 | |
| 151 | ############################################# |
| 152 | # Item below this line will soon be removed.# |
| 153 | ############################################# |
| 154 | |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 155 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 156 | # Chameleon server instance(s) |
Zsolt Haraszti | f2da1d0 | 2016-09-13 23:21:35 -0700 | [diff] [blame] | 157 | # |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 158 | chameleon: |
| 159 | image: cord/chameleon |
| 160 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 161 | "/chameleon/chameleon/main.py", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 162 | "-v", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 163 | "--consul=consul:8500", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 164 | "--fluentd=fluentd:24224", |
| 165 | "--rest-port=8881", |
Zsolt Haraszti | 1504408 | 2016-10-05 00:18:57 -0700 | [diff] [blame] | 166 | "--grpc-endpoint=@voltha-grpc", |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 167 | "--instance-id-is-container-name", |
| 168 | "-v" |
| 169 | ] |
| 170 | ports: |
| 171 | - 8881 |
| 172 | depends_on: |
| 173 | - consul |
Zsolt Haraszti | 034db37 | 2016-10-03 22:26:41 -0700 | [diff] [blame] | 174 | - voltha |
Zsolt Haraszti | 86be6f1 | 2016-09-27 09:56:49 -0700 | [diff] [blame] | 175 | links: |
| 176 | - consul |
| 177 | - fluentd |
| 178 | environment: |
| 179 | SERVICE_8881_NAME: "chameleon-rest" |
| 180 | volumes: |
| 181 | - "/var/run/docker.sock:/tmp/docker.sock" |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 182 | # |
| 183 | # ofagent server instance |
| 184 | # |
| 185 | ofagent: |
| 186 | image: cord/ofagent |
| 187 | command: [ |
Zsolt Haraszti | 1edb828 | 2016-11-08 10:57:19 -0800 | [diff] [blame] | 188 | "/ofagent/ofagent/main.py", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 189 | "-v", |
| 190 | "--consul=${DOCKER_HOST_IP}:8500", |
| 191 | "--fluentd=fluentd:24224", |
Khen Nursimulu | f309e2c | 2016-10-25 14:36:21 -0400 | [diff] [blame] | 192 | "--controller=${DOCKER_HOST_IP}:6633", |
Khen Nursimulu | 68b9be3 | 2016-10-25 11:57:04 -0400 | [diff] [blame] | 193 | "--grpc-endpoint=@voltha-grpc", |
| 194 | "--instance-id-is-container-name", |
| 195 | "-v" |
| 196 | ] |
| 197 | depends_on: |
| 198 | - consul |
| 199 | - voltha |
| 200 | links: |
| 201 | - consul |
| 202 | - fluentd |
| 203 | volumes: |
| 204 | - "/var/run/docker.sock:/tmp/docker.sock" |
Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 205 | |
| 206 | # |
| 207 | # Netconf server instance(s) |
| 208 | # |
| 209 | netconf: |
| 210 | image: cord/netconf |
| 211 | command: [ |
| 212 | "/netconf/netconf/main.py", |
| 213 | "-v", |
| 214 | "--consul=${DOCKER_HOST_IP}:8500", |
| 215 | "--fluentd=fluentd:24224", |
| 216 | "--grpc-endpoint=@voltha-grpc", |
| 217 | "--instance-id-is-container-name", |
| 218 | "-v" |
| 219 | ] |
| 220 | ports: |
| 221 | - "1830:1830" |
| 222 | depends_on: |
| 223 | - consul |
| 224 | - voltha |
| 225 | links: |
| 226 | - consul |
| 227 | - fluentd |
| 228 | environment: |
| 229 | SERVICE_1830_NAME: "netconf-server" |
| 230 | volumes: |
| 231 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 232 | |