Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | # |
| 4 | # Single-node zookeeper service |
| 5 | # |
| 6 | zookeeper: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 7 | image: "${REGISTRY}wurstmeister/zookeeper:${ZK_TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 8 | ports: |
| 9 | - "2181:2181" |
| 10 | environment: |
| 11 | SERVICE_2181_NAME: "zookeeper" |
| 12 | # |
| 13 | # Single-node kafka service |
| 14 | # |
| 15 | kafka: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 16 | image: "${REGISTRY}wurstmeister/kafka:${KAFKA_TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 17 | ports: |
| 18 | - "9092:9092" |
| 19 | environment: |
| 20 | KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP} |
| 21 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 22 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
| 23 | KAFKA_HEAP_OPTS: "-Xmx256M -Xms128M" |
| 24 | SERVICE_9092_NAME: "kafka" |
| 25 | depends_on: |
| 26 | - consul |
| 27 | volumes: |
| 28 | - /var/run/docker.sock:/var/run/docker.sock |
| 29 | # |
| 30 | # Single-node consul agent |
| 31 | # |
| 32 | consul: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 33 | image: "${REGISTRY}consul:${CONSUL_TAG:-0.9.2}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 34 | command: agent -server -bootstrap -client 0.0.0.0 -ui |
| 35 | ports: |
| 36 | - "8300:8300" |
| 37 | - "8400:8400" |
| 38 | - "8500:8500" |
| 39 | - "8600:8600/udp" |
| 40 | environment: |
| 41 | #SERVICE_53_IGNORE: "yes" |
| 42 | SERVICE_8300_IGNORE: "yes" |
| 43 | SERVICE_8400_IGNORE: "yes" |
| 44 | SERVICE_8500_NAME: "consul-rest" |
| 45 | # |
| 46 | # Registrator |
| 47 | # |
| 48 | registrator: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 49 | image: "${REGISTRY}gliderlabs/registrator:${REGISTRATOR_TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 50 | command: [ |
| 51 | "-ip=${DOCKER_HOST_IP}", |
| 52 | "-retry-attempts", "100", |
| 53 | # "-internal", |
| 54 | "consul://consul:8500" |
| 55 | ] |
| 56 | links: |
| 57 | - consul |
| 58 | volumes: |
| 59 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 60 | |
| 61 | # |
| 62 | # Fluentd log server |
| 63 | # |
| 64 | fluentd: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 65 | image: "${REGISTRY}${REPOSITORY}voltha-fluentd:${TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 66 | ports: |
| 67 | - "24224:24224" |
| 68 | volumes: |
| 69 | - "/tmp/fluentd:/fluentd/log" |
| 70 | environment: |
| 71 | SERVICE_24224_NAME: "fluentd-intake" |
| 72 | |
| 73 | # |
| 74 | # Graphite-Grafana-statsd service instance |
| 75 | # (demo place-holder for external KPI system) |
| 76 | # |
| 77 | grafana: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 78 | image: "${REGISTRY}kamon/grafana_graphite:${GRAPHITE_TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [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" |
| 91 | |
| 92 | # |
| 93 | # Shovel (Kafka-graphite-gateway) |
| 94 | # |
| 95 | shovel: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 96 | image: "${REGISTRY}${REPOSITORY}voltha-shovel:${TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 97 | command: [ |
| 98 | "/shovel/shovel/main.py", |
| 99 | "--kafka=@kafka", |
| 100 | "--consul=${DOCKER_HOST_IP}:8500", |
| 101 | "--topic=voltha.kpis", |
| 102 | "--host=${DOCKER_HOST_IP}" |
| 103 | ] |
| 104 | depends_on: |
| 105 | - consul |
| 106 | - kafka |
| 107 | - grafana |
| 108 | restart: unless-stopped |
| 109 | |
| 110 | # |
| 111 | # Voltha server instance(s) |
| 112 | # |
| 113 | voltha: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 114 | image: "${REGISTRY}${REPOSITORY}voltha-voltha:${TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 115 | command: [ |
| 116 | "/voltha/voltha/main.py", |
| 117 | "-v", |
| 118 | "--consul=${DOCKER_HOST_IP}:8500", |
| 119 | "--fluentd=fluentd:24224", |
| 120 | "--rest-port=8880", |
| 121 | "--grpc-port=50555", |
| 122 | "--kafka=@kafka", |
| 123 | "--instance-id-is-container-name", |
| 124 | "--interface=eth1", |
| 125 | "-v" |
| 126 | ] |
| 127 | ports: |
| 128 | - 8880 |
| 129 | - 50555 |
| 130 | - 18880 |
| 131 | depends_on: |
| 132 | - consul |
| 133 | links: |
| 134 | - consul |
| 135 | - fluentd |
| 136 | environment: |
| 137 | SERVICE_8880_NAME: "voltha-health" |
| 138 | SERVICE_8880_CHECK_HTTP: "/health" |
| 139 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 140 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
| 141 | SERVICE_50555_NAME: "voltha-grpc" |
| 142 | SERVICE_18880_NAME: "voltha-sim-rest" |
| 143 | volumes: |
| 144 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 145 | networks: |
| 146 | - default |
| 147 | - ponmgmt |
| 148 | |
| 149 | ############################################# |
| 150 | # Item below this line will soon be removed.# |
| 151 | ############################################# |
| 152 | |
| 153 | # |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 154 | # ofagent server instance |
| 155 | # |
| 156 | ofagent: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 157 | image: "${REGISTRY}${REPOSITORY}voltha-ofagent:${TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 158 | command: [ |
| 159 | "/ofagent/ofagent/main.py", |
| 160 | "-v", |
| 161 | "--consul=${DOCKER_HOST_IP}:8500", |
| 162 | "--fluentd=fluentd:24224", |
| 163 | "--controller=${DOCKER_HOST_IP}:6653", |
| 164 | "--grpc-endpoint=@voltha-grpc", |
| 165 | "--instance-id-is-container-name", |
| 166 | "-v" |
| 167 | ] |
| 168 | depends_on: |
| 169 | - consul |
| 170 | - voltha |
| 171 | links: |
| 172 | - consul |
| 173 | - fluentd |
| 174 | volumes: |
| 175 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 176 | restart: unless-stopped |
| 177 | |
| 178 | # |
| 179 | # Netconf server instance(s) |
| 180 | # |
| 181 | netconf: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 182 | image: "${REGISTRY}${REPOSITORY}voltha-netconf:${TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 183 | privileged: true |
| 184 | command: [ |
| 185 | "/netconf/netconf/main.py", |
| 186 | "-v", |
| 187 | "--consul=${DOCKER_HOST_IP}:8500", |
| 188 | "--fluentd=fluentd:24224", |
| 189 | "--grpc-endpoint=@voltha-grpc", |
| 190 | "--instance-id-is-container-name", |
| 191 | "-v" |
| 192 | ] |
| 193 | ports: |
| 194 | - "830:1830" |
| 195 | depends_on: |
| 196 | - consul |
| 197 | - voltha |
| 198 | links: |
| 199 | - consul |
| 200 | - fluentd |
| 201 | environment: |
| 202 | SERVICE_1830_NAME: "netconf-server" |
| 203 | volumes: |
| 204 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 205 | |
| 206 | # |
| 207 | # Dashboard daemon |
| 208 | # |
| 209 | dashd: |
David K. Bainbridge | 737b74f | 2018-01-22 12:57:52 -0800 | [diff] [blame] | 210 | image: "${REGISTRY}${REPOSITORY}voltha-dashd:${TAG:-latest}" |
Sergio Slobodrian | 61999e5 | 2017-04-03 19:09:11 -0400 | [diff] [blame] | 211 | command: [ |
| 212 | "/dashd/dashd/main.py", |
| 213 | "--kafka=@kafka", |
| 214 | "--consul=${DOCKER_HOST_IP}:8500", |
| 215 | "--grafana_url=http://admin:admin@${DOCKER_HOST_IP}:8882/api", |
| 216 | "--topic=voltha.kpis", |
| 217 | "--docker_host=${DOCKER_HOST_IP}" |
| 218 | ] |
| 219 | depends_on: |
| 220 | - consul |
| 221 | - kafka |
| 222 | - grafana |
| 223 | restart: unless-stopped |
| 224 | |
| 225 | networks: |
| 226 | default: |
| 227 | driver: bridge |
| 228 | ponmgmt: |
| 229 | driver: bridge |
| 230 | driver_opts: |
| 231 | com.docker.network.bridge.name: "ponmgmt" |