serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 1 | --- |
| 2 | # Copyright 2018 the original author or authors. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | version: '2' |
| 17 | |
| 18 | networks: |
| 19 | default: |
| 20 | driver: bridge |
| 21 | |
| 22 | services: |
| 23 | |
| 24 | zookeeper: |
| 25 | image: "wurstmeister/zookeeper:latest" |
| 26 | environment: |
| 27 | SERVICE_2181_NAME: "zookeeper" |
| 28 | ports: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 29 | - 2181:2181 |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 30 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 31 | - default |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 32 | restart: unless-stopped |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 33 | |
| 34 | |
| 35 | kafka: |
| 36 | image: "wurstmeister/kafka:2.11-2.0.1" |
| 37 | environment: |
| 38 | KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://${DOCKER_HOST_IP}:9092 |
| 39 | KAFKA_LISTENERS: PLAINTEXT://:9092 |
| 40 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 41 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
| 42 | SERVICE_9092_NAME: "kafka" |
| 43 | volumes: |
| 44 | - /var/run/docker.sock:/var/run/docker.sock |
| 45 | ports: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 46 | - 9092:9092 |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 47 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 48 | - default |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 49 | restart: unless-stopped |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 50 | |
| 51 | |
| 52 | etcd: |
Matt Jeanneret | e36a755 | 2019-12-13 16:13:48 -0500 | [diff] [blame] | 53 | image: "quay.io/coreos/etcd:v3.4.1" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 54 | command: [ |
| 55 | "etcd", |
| 56 | "--name=etcd0", |
| 57 | "--advertise-client-urls=http://${DOCKER_HOST_IP}:2379,http://${DOCKER_HOST_IP}:4001", |
| 58 | "--listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001", |
| 59 | "--initial-advertise-peer-urls=http://${DOCKER_HOST_IP}:2380", |
| 60 | "--listen-peer-urls=http://0.0.0.0:2380", |
| 61 | "--initial-cluster-token=etcd-cluster-1", |
| 62 | "--initial-cluster=etcd0=http://${DOCKER_HOST_IP}:2380", |
| 63 | "--initial-cluster-state=new" |
| 64 | ] |
| 65 | ports: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 66 | - "2379:2379" |
| 67 | - 2380 |
| 68 | - 4001 |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 69 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 70 | - default |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 71 | restart: unless-stopped |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 72 | |
| 73 | |
| 74 | rw_core: |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 75 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-rw-core:${DOCKER_TAG}" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 76 | entrypoint: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 77 | - /app/rw_core |
| 78 | - -kv_store_type=etcd |
| 79 | - -kv_store_host=${DOCKER_HOST_IP} |
| 80 | - -kv_store_port=2379 |
| 81 | - -grpc_port=50057 |
| 82 | - -banner=true |
| 83 | - -kafka_adapter_host=${DOCKER_HOST_IP} |
| 84 | - -kafka_adapter_port=9092 |
| 85 | - -kafka_cluster_host=${DOCKER_HOST_IP} |
| 86 | - -kafka_cluster_port=9092 |
| 87 | - -rw_core_topic=rwcore |
| 88 | - -kv_store_data_prefix=service/voltha |
| 89 | - -in_competing_mode=false |
| 90 | - -log_level=DEBUG |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 91 | volumes: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 92 | - "/var/run/docker.sock:/tmp/docker.sock" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 93 | ports: |
| 94 | - 50057:50057 |
| 95 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 96 | - default |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 97 | restart: unless-stopped |
| 98 | |
| 99 | |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 100 | ofagent: |
Matt Jeanneret | 13eb7c6 | 2020-03-23 17:46:20 -0400 | [diff] [blame] | 101 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-ofagent-go:${DOCKER_TAG}" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 102 | command: [ |
Matt Jeanneret | 13eb7c6 | 2020-03-23 17:46:20 -0400 | [diff] [blame] | 103 | "/app/ofagent", |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 104 | "--controller=${DOCKER_HOST_IP}:6653", |
Matt Jeanneret | 13eb7c6 | 2020-03-23 17:46:20 -0400 | [diff] [blame] | 105 | "--voltha=${DOCKER_HOST_IP}:50057", |
| 106 | "--log_level=DEBUG" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 107 | ] |
| 108 | volumes: |
| 109 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 110 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 111 | - default |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 112 | restart: unless-stopped |
| 113 | |
| 114 | |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 115 | onos: |
| 116 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-onos:${DOCKER_TAG}" |
| 117 | ports: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 118 | - "8101:8101" # ssh |
| 119 | - "6653:6653" # OF |
| 120 | - "8181:8181" # UI |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 121 | environment: |
| 122 | ONOS_APPS: 'drivers,openflow-base' |
| 123 | volumes: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 124 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 125 | - "./network-cfg-bbsim.json:/root/onos/config/network-cfg.json" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 126 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 127 | - default |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 128 | restart: unless-stopped |
| 129 | |
| 130 | |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 131 | adapter_openolt: |
| 132 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openolt-adapter:${DOCKER_TAG}" |
| 133 | command: [ |
| 134 | "/app/openolt", |
| 135 | "--kafka_adapter_host=${DOCKER_HOST_IP}", |
| 136 | "--kafka_adapter_port=9092", |
| 137 | "--kafka_cluster_host=${DOCKER_HOST_IP}", |
| 138 | "--kafka_cluster_port=9092", |
| 139 | "--core_topic=rwcore", |
| 140 | "--kv_store_host=${DOCKER_HOST_IP}", |
Matteo Scandolo | 65cb19f | 2020-02-25 12:06:48 -0800 | [diff] [blame] | 141 | "--kv_store_port=2379", |
Matt Jeanneret | 13eb7c6 | 2020-03-23 17:46:20 -0400 | [diff] [blame] | 142 | "--log_level=DEBUG" |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 143 | ] |
| 144 | ports: |
| 145 | - "50062:50062" |
| 146 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 147 | - default |
Matt Jeanneret | 604196b | 2019-08-03 11:39:51 -0400 | [diff] [blame] | 148 | restart: unless-stopped |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 149 | |
| 150 | |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 151 | adapter_openonu: |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 152 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openonu-adapter:${DOCKER_TAG}" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 153 | command: [ |
| 154 | "/voltha/adapters/brcm_openomci_onu/main.py", |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 155 | "--name=brcm_openomci_onu", |
| 156 | "--kafka_adapter=${DOCKER_HOST_IP}:9092", |
| 157 | "--kafka_cluster=${DOCKER_HOST_IP}:9092", |
| 158 | "--backend=etcd", |
| 159 | "--etcd=${DOCKER_HOST_IP}:2379", |
Matt Jeanneret | 13eb7c6 | 2020-03-23 17:46:20 -0400 | [diff] [blame] | 160 | "--core_topic=rwcore", |
| 161 | "--log_level=DEBUG" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 162 | ] |
| 163 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 164 | - default |
Matt Jeanneret | 604196b | 2019-08-03 11:39:51 -0400 | [diff] [blame] | 165 | restart: unless-stopped |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 166 | |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 167 | |
| 168 | bbsim: |
Matt Jeanneret | 2900188 | 2019-11-28 13:36:12 -0500 | [diff] [blame] | 169 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim:${DOCKER_TAG}" |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 170 | privileged: true |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 171 | command: [ |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 172 | "./bbsim", |
Matt Jeanneret | e93988b | 2020-02-16 16:00:57 -0500 | [diff] [blame] | 173 | "-logLevel", |
Matteo Scandolo | 65cb19f | 2020-02-25 12:06:48 -0800 | [diff] [blame] | 174 | "debug", |
Matt Jeanneret | 2900188 | 2019-11-28 13:36:12 -0500 | [diff] [blame] | 175 | "-auth", |
| 176 | "-dhcp", |
| 177 | "-pon", |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 178 | "1", |
Matt Jeanneret | 2900188 | 2019-11-28 13:36:12 -0500 | [diff] [blame] | 179 | "-onu", |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 180 | "1" |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 181 | ] |
serkant.uluderya | 79c9a04 | 2019-03-14 15:24:48 -0700 | [diff] [blame] | 182 | ports: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 183 | - "50060:50060" |
| 184 | - "50074:50074" |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 185 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 186 | - default |
Matt Jeanneret | 604196b | 2019-08-03 11:39:51 -0400 | [diff] [blame] | 187 | restart: unless-stopped |
| 188 | |
| 189 | |
| 190 | radius: |
| 191 | image: "tpdock/freeradius:2.2.9" |
| 192 | environment: |
| 193 | RADIUS_LISTEN_IP: "*" |
| 194 | USERS_FILE: "/etc/raddb/users" |
| 195 | RADIUS_CLIENTS: "SECRET@0.0.0.0/0" |
| 196 | volumes: |
| 197 | - "./radius-clients.conf:/etc/raddb/clients.conf" |
| 198 | - "./radius-users.conf:/etc/raddb/users" |
| 199 | ports: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 200 | - "1812:1812/udp" |
| 201 | - "1813:1813" |
| 202 | - "18120:18120" |
Matt Jeanneret | 604196b | 2019-08-03 11:39:51 -0400 | [diff] [blame] | 203 | networks: |
Matteo Scandolo | d525ae3 | 2020-04-02 17:27:29 -0700 | [diff] [blame^] | 204 | - default |
| 205 | restart: unless-stopped |