blob: 7739b92be93d991fd401db06403232f19878a52a [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:
29 - 2181:2181
30 networks:
31 - 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:
46 - 9092:9092
47 networks:
48 - default
Matt Jeanneret352fb7d2019-08-01 08:48:57 -040049 restart: unless-stopped
serkant.uluderya79c9a042019-03-14 15:24:48 -070050
51
52 etcd:
53 image: "quay.io/coreos/etcd:v3.2.9"
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:
66 - "2379:2379"
67 - 2380
68 - 4001
69 networks:
70 - 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:
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=0
serkant.uluderya79c9a042019-03-14 15:24:48 -070091 volumes:
92 - "/var/run/docker.sock:/tmp/docker.sock"
93 ports:
94 - 50057:50057
95 networks:
96 - default
97 restart: unless-stopped
98
99
100 cli:
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400101 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-cli:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700102 environment:
103 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
104 entrypoint:
105 - /voltha/python/cli/setup.sh
106 - -g ${DOCKER_HOST_IP}:50057
107 networks:
108 - default
109 ports:
110 - "5022:22"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400111 restart: unless-stopped
serkant.uluderya79c9a042019-03-14 15:24:48 -0700112
113
114 ofagent:
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400115 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-ofagent:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700116 command: [
117 "/ofagent/ofagent/main.py",
118 "--consul=${DOCKER_HOST_IP}:8500",
119 "--controller=${DOCKER_HOST_IP}:6653",
120 "--grpc-endpoint=${DOCKER_HOST_IP}:50057",
121 "--instance-id-is-container-name",
122 "-v"
123 ]
124 volumes:
125 - "/var/run/docker.sock:/tmp/docker.sock"
126 networks:
127 - default
128 restart: unless-stopped
129
130
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400131 onos:
132 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-onos:${DOCKER_TAG}"
133 ports:
134 - "8101:8101" # ssh
135 - "6653:6653" # OF
136 - "8181:8181" # UI
137 environment:
138 ONOS_APPS: 'drivers,openflow-base'
139 volumes:
140 - "/var/run/docker.sock:/tmp/docker.sock"
141 - "./network-cfg-bbsim.json:/root/onos/config/network-cfg.json"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700142 networks:
143 - default
144 restart: unless-stopped
145
146
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400147 adapter_openolt:
148 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openolt-adapter:${DOCKER_TAG}"
149 command: [
150 "/app/openolt",
151 "--kafka_adapter_host=${DOCKER_HOST_IP}",
152 "--kafka_adapter_port=9092",
153 "--kafka_cluster_host=${DOCKER_HOST_IP}",
154 "--kafka_cluster_port=9092",
155 "--core_topic=rwcore",
156 "--kv_store_host=${DOCKER_HOST_IP}",
157 "--kv_store_port=2379"
158 ]
159 ports:
160 - "50062:50062"
161 networks:
162 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400163 restart: unless-stopped
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400164
165
serkant.uluderya79c9a042019-03-14 15:24:48 -0700166 adapter_openonu:
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400167 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openonu-adapter:${DOCKER_TAG}"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700168 command: [
169 "/voltha/adapters/brcm_openomci_onu/main.py",
170 "-v",
171 "--name=brcm_openomci_onu",
172 "--kafka_adapter=${DOCKER_HOST_IP}:9092",
173 "--kafka_cluster=${DOCKER_HOST_IP}:9092",
174 "--backend=etcd",
175 "--etcd=${DOCKER_HOST_IP}:2379",
176 "--core_topic=rwcore"
177 ]
178 networks:
179 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400180 restart: unless-stopped
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400181
serkant.uluderya79c9a042019-03-14 15:24:48 -0700182
183 bbsim:
184 image: "voltha/voltha-bbsim:latest"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400185 privileged: true
serkant.uluderya79c9a042019-03-14 15:24:48 -0700186 command: [
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400187 "./bbsim",
188 "-m",
189 "both",
190 "-i",
191 "1",
192 "-n",
193 "1"
serkant.uluderya79c9a042019-03-14 15:24:48 -0700194 ]
serkant.uluderya79c9a042019-03-14 15:24:48 -0700195 ports:
196 - "50060:50060"
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400197 networks:
198 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400199 restart: unless-stopped
200
201
202 radius:
203 image: "tpdock/freeradius:2.2.9"
204 environment:
205 RADIUS_LISTEN_IP: "*"
206 USERS_FILE: "/etc/raddb/users"
207 RADIUS_CLIENTS: "SECRET@0.0.0.0/0"
208 volumes:
209 - "./radius-clients.conf:/etc/raddb/clients.conf"
210 - "./radius-users.conf:/etc/raddb/users"
211 ports:
212 - "1812:1812/udp"
213 - "1813:1813"
214 - "18120:18120"
215 networks:
216 - default
217 restart: unless-stopped