blob: 850dadd1bb0691dd656c95577e838627ebb02918 [file] [log] [blame]
serkant.uluderya79c9a042019-03-14 15:24:48 -07001---
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
16version: '2'
17
18networks:
19 default:
20 driver: bridge
21
22services:
23
24 zookeeper:
25 image: "wurstmeister/zookeeper:latest"
26 environment:
27 SERVICE_2181_NAME: "zookeeper"
28 ports:
Matteo Scandolod525ae32020-04-02 17:27:29 -070029 - 2181:2181
serkant.uluderya79c9a042019-03-14 15:24:48 -070030 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -070031 - default
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040032 restart: unless-stopped
serkant.uluderya79c9a042019-03-14 15:24:48 -070033
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 Scandolod525ae32020-04-02 17:27:29 -070046 - 9092:9092
serkant.uluderya79c9a042019-03-14 15:24:48 -070047 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -070048 - default
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040049 restart: unless-stopped
serkant.uluderya79c9a042019-03-14 15:24:48 -070050
51
52 etcd:
Matt Jeannerete36a7552019-12-13 16:13:48 -050053 image: "quay.io/coreos/etcd:v3.4.1"
serkant.uluderya79c9a042019-03-14 15:24:48 -070054 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 Scandolod525ae32020-04-02 17:27:29 -070066 - "2379:2379"
67 - 2380
68 - 4001
serkant.uluderya79c9a042019-03-14 15:24:48 -070069 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -070070 - default
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040071 restart: unless-stopped
serkant.uluderya79c9a042019-03-14 15:24:48 -070072
73
74 rw_core:
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040075 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-rw-core:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -070076 entrypoint:
Matteo Scandolod525ae32020-04-02 17:27:29 -070077 - /app/rw_core
78 - -kv_store_type=etcd
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070079 - -kv_store_address=${DOCKER_HOST_IP}:2379
Matteo Scandolod525ae32020-04-02 17:27:29 -070080 - -banner=true
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070081 - -kafka_adapter_address=${DOCKER_HOST_IP}:9092
82 - -kafka_cluster_address=${DOCKER_HOST_IP}:9092
Matteo Scandolod525ae32020-04-02 17:27:29 -070083 - -rw_core_topic=rwcore
Matteo Scandolod525ae32020-04-02 17:27:29 -070084 - -in_competing_mode=false
85 - -log_level=DEBUG
serkant.uluderya79c9a042019-03-14 15:24:48 -070086 volumes:
Matteo Scandolod525ae32020-04-02 17:27:29 -070087 - "/var/run/docker.sock:/tmp/docker.sock"
serkant.uluderya79c9a042019-03-14 15:24:48 -070088 ports:
89 - 50057:50057
90 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -070091 - default
serkant.uluderya79c9a042019-03-14 15:24:48 -070092 restart: unless-stopped
93
94
serkant.uluderya79c9a042019-03-14 15:24:48 -070095 ofagent:
Matt Jeanneret13eb7c62020-03-23 17:46:20 -040096 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-ofagent-go:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -070097 command: [
Matt Jeanneret13eb7c62020-03-23 17:46:20 -040098 "/app/ofagent",
serkant.uluderya79c9a042019-03-14 15:24:48 -070099 "--controller=${DOCKER_HOST_IP}:6653",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400100 "--voltha=${DOCKER_HOST_IP}:50057",
101 "--log_level=DEBUG"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700102 ]
103 volumes:
104 - "/var/run/docker.sock:/tmp/docker.sock"
105 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700106 - default
serkant.uluderya79c9a042019-03-14 15:24:48 -0700107 restart: unless-stopped
108
109
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400110 onos:
111 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-onos:${DOCKER_TAG}"
112 ports:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700113 - "8101:8101" # ssh
114 - "6653:6653" # OF
115 - "8181:8181" # UI
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400116 environment:
117 ONOS_APPS: 'drivers,openflow-base'
118 volumes:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700119 - "/var/run/docker.sock:/tmp/docker.sock"
120 - "./network-cfg-bbsim.json:/root/onos/config/network-cfg.json"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700121 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700122 - default
serkant.uluderya79c9a042019-03-14 15:24:48 -0700123 restart: unless-stopped
124
125
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400126 adapter_openolt:
127 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openolt-adapter:${DOCKER_TAG}"
128 command: [
129 "/app/openolt",
Mahir Gunyel7b1e0642020-06-12 16:22:47 -0700130 "--kafka_adapter_address=${DOCKER_HOST_IP}:9092",
131 "--kafka_cluster_address=${DOCKER_HOST_IP}:9092",
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400132 "--core_topic=rwcore",
Mahir Gunyel7b1e0642020-06-12 16:22:47 -0700133 "--kv_store_address=${DOCKER_HOST_IP}:2379",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400134 "--log_level=DEBUG"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400135 ]
136 ports:
137 - "50062:50062"
138 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700139 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400140 restart: unless-stopped
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400141
142
serkant.uluderya79c9a042019-03-14 15:24:48 -0700143 adapter_openonu:
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400144 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openonu-adapter:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700145 command: [
146 "/voltha/adapters/brcm_openomci_onu/main.py",
serkant.uluderya79c9a042019-03-14 15:24:48 -0700147 "--name=brcm_openomci_onu",
148 "--kafka_adapter=${DOCKER_HOST_IP}:9092",
149 "--kafka_cluster=${DOCKER_HOST_IP}:9092",
150 "--backend=etcd",
151 "--etcd=${DOCKER_HOST_IP}:2379",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400152 "--core_topic=rwcore",
153 "--log_level=DEBUG"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700154 ]
155 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700156 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400157 restart: unless-stopped
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400158
serkant.uluderya79c9a042019-03-14 15:24:48 -0700159
Mahir Gunyel7b1e0642020-06-12 16:22:47 -0700160
serkant.uluderya79c9a042019-03-14 15:24:48 -0700161 bbsim:
Matt Jeanneret29001882019-11-28 13:36:12 -0500162 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim:${DOCKER_TAG}"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400163 privileged: true
serkant.uluderya79c9a042019-03-14 15:24:48 -0700164 command: [
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400165 "./bbsim",
Matt Jeannerete93988b2020-02-16 16:00:57 -0500166 "-logLevel",
Matteo Scandolo65cb19f2020-02-25 12:06:48 -0800167 "debug",
Matt Jeanneret29001882019-11-28 13:36:12 -0500168 "-auth",
169 "-dhcp",
170 "-pon",
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400171 "1",
Matt Jeanneret29001882019-11-28 13:36:12 -0500172 "-onu",
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400173 "1"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700174 ]
serkant.uluderya79c9a042019-03-14 15:24:48 -0700175 ports:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700176 - "50060:50060"
177 - "50074:50074"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400178 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700179 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400180 restart: unless-stopped
181
182
183 radius:
184 image: "tpdock/freeradius:2.2.9"
185 environment:
186 RADIUS_LISTEN_IP: "*"
187 USERS_FILE: "/etc/raddb/users"
188 RADIUS_CLIENTS: "SECRET@0.0.0.0/0"
189 volumes:
190 - "./radius-clients.conf:/etc/raddb/clients.conf"
191 - "./radius-users.conf:/etc/raddb/users"
192 ports:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700193 - "1812:1812/udp"
194 - "1813:1813"
195 - "18120:18120"
Matt Jeanneret604196b2019-08-03 11:39:51 -0400196 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700197 - default
198 restart: unless-stopped