blob: 58e5761db57506df992c8f4fffff5c01b083206f [file] [log] [blame]
serkant.uluderya79c9a042019-03-14 15:24:48 -07001---
Joey Armstrong393daca2023-07-06 08:47:54 -04002# Copyright 2018-2023 Open Networking Foundation (ONF) and the ONF Contributors
serkant.uluderya79c9a042019-03-14 15:24:48 -07003# 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
17version: '2'
18
19networks:
20 default:
21 driver: bridge
22
23services:
24
25 zookeeper:
26 image: "wurstmeister/zookeeper:latest"
27 environment:
28 SERVICE_2181_NAME: "zookeeper"
29 ports:
Matteo Scandolod525ae32020-04-02 17:27:29 -070030 - 2181:2181
serkant.uluderya79c9a042019-03-14 15:24:48 -070031 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -070032 - default
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040033 restart: unless-stopped
serkant.uluderya79c9a042019-03-14 15:24:48 -070034
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 Scandolod525ae32020-04-02 17:27:29 -070047 - 9092:9092
serkant.uluderya79c9a042019-03-14 15:24:48 -070048 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -070049 - default
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040050 restart: unless-stopped
serkant.uluderya79c9a042019-03-14 15:24:48 -070051
52
53 etcd:
Matt Jeannerete36a7552019-12-13 16:13:48 -050054 image: "quay.io/coreos/etcd:v3.4.1"
serkant.uluderya79c9a042019-03-14 15:24:48 -070055 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 Scandolod525ae32020-04-02 17:27:29 -070067 - "2379:2379"
68 - 2380
69 - 4001
serkant.uluderya79c9a042019-03-14 15:24:48 -070070 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -070071 - default
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040072 restart: unless-stopped
serkant.uluderya79c9a042019-03-14 15:24:48 -070073
74
75 rw_core:
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040076 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-rw-core:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -070077 entrypoint:
Matteo Scandolod525ae32020-04-02 17:27:29 -070078 - /app/rw_core
79 - -kv_store_type=etcd
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070080 - -kv_store_address=${DOCKER_HOST_IP}:2379
Matteo Scandolod525ae32020-04-02 17:27:29 -070081 - -banner=true
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070082 - -kafka_adapter_address=${DOCKER_HOST_IP}:9092
83 - -kafka_cluster_address=${DOCKER_HOST_IP}:9092
Matteo Scandolod525ae32020-04-02 17:27:29 -070084 - -rw_core_topic=rwcore
Matteo Scandolod525ae32020-04-02 17:27:29 -070085 - -in_competing_mode=false
86 - -log_level=DEBUG
serkant.uluderya79c9a042019-03-14 15:24:48 -070087 volumes:
Matteo Scandolod525ae32020-04-02 17:27:29 -070088 - "/var/run/docker.sock:/tmp/docker.sock"
serkant.uluderya79c9a042019-03-14 15:24:48 -070089 ports:
90 - 50057:50057
91 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -070092 - default
serkant.uluderya79c9a042019-03-14 15:24:48 -070093 restart: unless-stopped
94
95
serkant.uluderya79c9a042019-03-14 15:24:48 -070096 ofagent:
Matt Jeanneret13eb7c62020-03-23 17:46:20 -040097 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-ofagent-go:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -070098 command: [
Matt Jeanneret13eb7c62020-03-23 17:46:20 -040099 "/app/ofagent",
serkant.uluderya79c9a042019-03-14 15:24:48 -0700100 "--controller=${DOCKER_HOST_IP}:6653",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400101 "--voltha=${DOCKER_HOST_IP}:50057",
102 "--log_level=DEBUG"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700103 ]
104 volumes:
105 - "/var/run/docker.sock:/tmp/docker.sock"
106 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700107 - default
serkant.uluderya79c9a042019-03-14 15:24:48 -0700108 restart: unless-stopped
109
110
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400111 onos:
112 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-onos:${DOCKER_TAG}"
113 ports:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700114 - "8101:8101" # ssh
115 - "6653:6653" # OF
116 - "8181:8181" # UI
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400117 environment:
118 ONOS_APPS: 'drivers,openflow-base'
119 volumes:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700120 - "/var/run/docker.sock:/tmp/docker.sock"
121 - "./network-cfg-bbsim.json:/root/onos/config/network-cfg.json"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700122 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700123 - default
serkant.uluderya79c9a042019-03-14 15:24:48 -0700124 restart: unless-stopped
125
126
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400127 adapter_openolt:
128 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openolt-adapter:${DOCKER_TAG}"
129 command: [
130 "/app/openolt",
Mahir Gunyel7b1e0642020-06-12 16:22:47 -0700131 "--kafka_adapter_address=${DOCKER_HOST_IP}:9092",
132 "--kafka_cluster_address=${DOCKER_HOST_IP}:9092",
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400133 "--core_topic=rwcore",
Mahir Gunyel7b1e0642020-06-12 16:22:47 -0700134 "--kv_store_address=${DOCKER_HOST_IP}:2379",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400135 "--log_level=DEBUG"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400136 ]
137 ports:
138 - "50062:50062"
139 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700140 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400141 restart: unless-stopped
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400142
143
serkant.uluderya79c9a042019-03-14 15:24:48 -0700144 adapter_openonu:
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400145 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openonu-adapter:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700146 command: [
147 "/voltha/adapters/brcm_openomci_onu/main.py",
serkant.uluderya79c9a042019-03-14 15:24:48 -0700148 "--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 Jeanneret13eb7c62020-03-23 17:46:20 -0400153 "--core_topic=rwcore",
154 "--log_level=DEBUG"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700155 ]
156 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700157 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400158 restart: unless-stopped
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400159
serkant.uluderya79c9a042019-03-14 15:24:48 -0700160
Mahir Gunyel7b1e0642020-06-12 16:22:47 -0700161
serkant.uluderya79c9a042019-03-14 15:24:48 -0700162 bbsim:
Matt Jeanneret29001882019-11-28 13:36:12 -0500163 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim:${DOCKER_TAG}"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400164 privileged: true
serkant.uluderya79c9a042019-03-14 15:24:48 -0700165 command: [
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400166 "./bbsim",
Matt Jeannerete93988b2020-02-16 16:00:57 -0500167 "-logLevel",
Matteo Scandolo65cb19f2020-02-25 12:06:48 -0800168 "debug",
Matt Jeanneret29001882019-11-28 13:36:12 -0500169 "-auth",
170 "-dhcp",
171 "-pon",
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400172 "1",
Matt Jeanneret29001882019-11-28 13:36:12 -0500173 "-onu",
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400174 "1"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700175 ]
serkant.uluderya79c9a042019-03-14 15:24:48 -0700176 ports:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700177 - "50060:50060"
178 - "50074:50074"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400179 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700180 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400181 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 Scandolod525ae32020-04-02 17:27:29 -0700194 - "1812:1812/udp"
195 - "1813:1813"
196 - "18120:18120"
Matt Jeanneret604196b2019-08-03 11:39:51 -0400197 networks:
Matteo Scandolod525ae32020-04-02 17:27:29 -0700198 - default
Joey Armstrong393daca2023-07-06 08:47:54 -0400199 restart: unless-stopped