Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 14 | version: '2' |
| 15 | services: |
| 16 | |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 17 | # |
| 18 | # Single-node consul agent |
| 19 | # |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 20 | vconsul: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 21 | image: "${REGISTRY}consul:0.9.2" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 22 | command: agent -server -bootstrap -client 0.0.0.0 -ui |
| 23 | ports: |
| 24 | - "8300:8300" |
| 25 | - "8400:8400" |
| 26 | - "8500:8500" |
| 27 | - "8600:8600/udp" |
| 28 | environment: |
| 29 | #SERVICE_53_IGNORE: "yes" |
| 30 | SERVICE_8300_IGNORE: "yes" |
| 31 | SERVICE_8400_IGNORE: "yes" |
| 32 | SERVICE_8500_NAME: "consul-rest" |
| 33 | # |
| 34 | # Registrator |
| 35 | # |
| 36 | registrator: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 37 | image: "${REGISTRY}gliderlabs/registrator:latest" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 38 | command: [ |
| 39 | "-ip=${DOCKER_HOST_IP}", |
| 40 | "-retry-attempts", "100", |
| 41 | "-cleanup", |
| 42 | # "-internal", |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 43 | "consul://vconsul:8500" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 44 | ] |
| 45 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 46 | - vconsul |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 47 | volumes: |
| 48 | - "/var/run/docker.sock:/tmp/docker.sock" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 49 | |
| 50 | # |
| 51 | # Fluentd log server |
| 52 | # |
| 53 | fluentd: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 54 | image: "${REGISTRY}${REPOSITORY}fluent/fluentd:v0.12.42" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 55 | ports: |
| 56 | - "24224:24224" |
| 57 | volumes: |
| 58 | - "/tmp/fluentd:/fluentd/log" |
| 59 | environment: |
| 60 | SERVICE_24224_NAME: "fluentd-intake" |
| 61 | |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 62 | # |
| 63 | # Voltha server instance(s) |
| 64 | # |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 65 | voltha: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 66 | image: "${REGISTRY}${REPOSITORY}voltha-voltha${TAG}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 67 | command: [ |
| 68 | "/voltha/voltha/main.py", |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 69 | "-v", |
| 70 | "--consul=${DOCKER_HOST_IP}:8500", |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 71 | "--rest-port=8880", |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 72 | "--grpc-port=50556", |
| 73 | "--kafka=@kafka", |
| 74 | "--instance-id-is-container-name", |
| 75 | "--interface=eth1", |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 76 | "--backend=consul", |
| 77 | "-v" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 78 | ] |
| 79 | ports: |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 80 | - 8880 |
| 81 | - 50556 |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 82 | - 18880 |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 83 | - "60001:60001" |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 84 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 85 | - vconsul |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 86 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 87 | - vconsul |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 88 | environment: |
| 89 | SERVICE_8880_NAME: "voltha-health" |
| 90 | SERVICE_8880_CHECK_HTTP: "/health" |
| 91 | SERVICE_8880_CHECK_INTERVAL: "5s" |
| 92 | SERVICE_8880_CHECK_TIMEOUT: "1s" |
| 93 | SERVICE_18880_NAME: "voltha-sim-rest" |
| 94 | SERVICE_HOST_IP: "${DOCKER_HOST_IP}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 95 | volumes: |
| 96 | - "/var/run/docker.sock:/tmp/docker.sock" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 97 | networks: |
| 98 | - default |
| 99 | - ponmgmt |
| 100 | |
| 101 | envoy: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 102 | image: "${REGISTRY}${REPOSITORY}voltha-envoy${TAG}" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 103 | entrypoint: |
| 104 | - /usr/local/bin/envoyd |
| 105 | - -envoy-cfg-template |
| 106 | - "/envoy/voltha-grpc-proxy.template.json" |
| 107 | - -envoy-config |
| 108 | - "/envoy/voltha-grpc-proxy.json" |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 109 | - -consul-svc-nme |
| 110 | - "vconsul" |
| 111 | - -kv-svc-name |
| 112 | - "vconsul" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 113 | ports: |
| 114 | - "50555:50555" |
| 115 | - "8882:8882" |
| 116 | - "8443:8443" |
| 117 | - "8001:8001" |
| 118 | environment: |
| 119 | SERVICE_50555_NAME: "voltha-grpc" |
| 120 | volumes: |
| 121 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 122 | networks: |
| 123 | - default |
| 124 | - ponmgmt |
| 125 | links: |
| 126 | - voltha:vcore |
| 127 | # |
| 128 | # Voltha cli container |
| 129 | # |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 130 | cli: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 131 | image: "${REGISTRY}${REPOSITORY}voltha-cli${TAG}" |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 132 | command: [ |
| 133 | "/cli/cli/setup.sh", |
| 134 | "-L", |
| 135 | "-G" |
| 136 | ] |
| 137 | environment: |
| 138 | DOCKER_HOST_IP: "${DOCKER_HOST_IP}" |
| 139 | ports: |
| 140 | - "5022:22" |
| 141 | depends_on: |
| 142 | - voltha |
| 143 | |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 144 | # |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 145 | # onos-1 |
| 146 | # |
| 147 | onos1: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 148 | image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 149 | container_name: onos1 |
| 150 | ports: |
| 151 | - 6633:6653 |
| 152 | - 8101:8101 |
| 153 | - 8181:8181 |
| 154 | environment: |
| 155 | ONOS_APPS: drivers,openflow |
| 156 | volumes: |
| 157 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 158 | restart: unless-stopped |
| 159 | |
| 160 | # |
| 161 | # onos-2 |
| 162 | # |
| 163 | onos2: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 164 | image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 165 | container_name: onos2 |
| 166 | ports: |
| 167 | - 6644:6653 |
| 168 | - 8102:8101 |
| 169 | - 8182:8181 |
| 170 | environment: |
| 171 | ONOS_APPS: drivers,openflow |
| 172 | volumes: |
| 173 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 174 | restart: unless-stopped |
| 175 | |
| 176 | # |
| 177 | # onos-3 |
| 178 | # |
| 179 | onos3: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 180 | image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 181 | container_name: onos3 |
| 182 | ports: |
| 183 | - 6655:6653 |
| 184 | - 8103:8101 |
| 185 | - 8183:8181 |
| 186 | environment: |
| 187 | ONOS_APPS: drivers,openflow |
| 188 | volumes: |
| 189 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 190 | restart: unless-stopped |
| 191 | # |
| 192 | # ofagent server instance |
| 193 | # |
| 194 | ofagent: |
Richard Jankowski | 9ac4bbd | 2018-03-21 11:31:02 -0400 | [diff] [blame] | 195 | image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}" |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 196 | command: /ofagent/ofagent/main.py -v --consul=${DOCKER_HOST_IP}:8500 --controller ${DOCKER_HOST_IP}:6633 ${DOCKER_HOST_IP}:6644 ${DOCKER_HOST_IP}:6655 --grpc-endpoint=@voltha-grpc --instance-id-is-container-name --enable-tls --key-file=/ofagent/pki/voltha.key --cert-file=/ofagent/pki/voltha.crt |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 197 | depends_on: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 198 | - vconsul |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 199 | - voltha |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 200 | links: |
Jonathan Hart | 87314cd | 2018-02-12 17:15:35 -0800 | [diff] [blame] | 201 | - vconsul |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 202 | volumes: |
| 203 | - "/var/run/docker.sock:/tmp/docker.sock" |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 204 | restart: unless-stopped |
Stephane Barbarie | cd51f99 | 2017-09-07 16:37:02 -0400 | [diff] [blame] | 205 | |
| 206 | networks: |
| 207 | default: |
| 208 | driver: bridge |
| 209 | ponmgmt: |
| 210 | driver: bridge |
| 211 | driver_opts: |
| 212 | com.docker.network.bridge.name: "ponmgmt" |