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