blob: 49238895657ee374c92545746bb73776adaf3eca [file] [log] [blame]
Matt Jeanneret13643e02019-01-30 16:49:03 -05001---
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 Jeanneret2e3051a2019-05-11 15:01:46 -040032 restart: unless-stopped
Matt Jeanneret13643e02019-01-30 16:49:03 -050033
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 Jeanneret2e3051a2019-05-11 15:01:46 -040049 restart: unless-stopped
Matt Jeanneret13643e02019-01-30 16:49:03 -050050
51
52 etcd:
Matt Jeannerete36a7552019-12-13 16:13:48 -050053 image: "quay.io/coreos/etcd:v3.4.1"
Matt Jeanneret13643e02019-01-30 16:49:03 -050054 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 Jeanneret2e3051a2019-05-11 15:01:46 -040071 restart: unless-stopped
Matt Jeanneret13643e02019-01-30 16:49:03 -050072
73
74 rw_core:
Matt Jeanneret2e3051a2019-05-11 15:01:46 -040075 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-rw-core:${DOCKER_TAG}"
Matt Jeanneret13643e02019-01-30 16:49:03 -050076 entrypoint:
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070077 - /app/rw_core
78 - -kv_store_type=etcd
79 - -kv_store_address=${DOCKER_HOST_IP}:2379
80 - -banner=true
81 - -kafka_adapter_address=${DOCKER_HOST_IP}:9092
82 - -kafka_cluster_address=${DOCKER_HOST_IP}:9092
83 - -rw_core_topic=rwcore
84 - -in_competing_mode=false
85 - -log_level=DEBUG
Matt Jeanneret13643e02019-01-30 16:49:03 -050086 volumes:
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070087 - "/var/run/docker.sock:/tmp/docker.sock"
Matt Jeanneret13643e02019-01-30 16:49:03 -050088 ports:
89 - 50057:50057
90 networks:
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070091 - default
Matt Jeanneret13643e02019-01-30 16:49:03 -050092 restart: unless-stopped
93
94
Matt Jeanneret13643e02019-01-30 16:49:03 -050095 ofagent:
Matt Jeanneret13eb7c62020-03-23 17:46:20 -040096 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-ofagent-go:${DOCKER_TAG}"
Matt Jeanneret13643e02019-01-30 16:49:03 -050097 command: [
Matt Jeanneret13eb7c62020-03-23 17:46:20 -040098 "/app/ofagent",
Matt Jeanneret13643e02019-01-30 16:49:03 -050099 "--controller=${DOCKER_HOST_IP}:6653",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400100 "--voltha=${DOCKER_HOST_IP}:50057",
101 "--log_level=DEBUG"
Matt Jeanneret13643e02019-01-30 16:49:03 -0500102 ]
103 volumes:
104 - "/var/run/docker.sock:/tmp/docker.sock"
105 networks:
106 - default
107 restart: unless-stopped
108
109
Matt Jeanneret3815e322019-03-12 19:15:49 -0400110 onos:
Matt Jeanneret2e3051a2019-05-11 15:01:46 -0400111 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-onos:${DOCKER_TAG}"
Matt Jeanneret3815e322019-03-12 19:15:49 -0400112 ports:
113 - "8101:8101" # ssh
114 - "6653:6653" # OF
115 - "8181:8181" # UI
116 environment:
117 ONOS_APPS: 'drivers,openflow-base'
118 volumes:
119 - "/var/run/docker.sock:/tmp/docker.sock"
Matt Jeanneret42d4b782019-03-23 10:43:11 -0400120 - "./network-cfg.json:/root/onos/config/network-cfg.json"
Matt Jeanneret3815e322019-03-12 19:15:49 -0400121 networks:
122 - default
123 restart: unless-stopped
124
125
Matt Jeanneret13643e02019-01-30 16:49:03 -0500126 adapter_openolt:
Matt Jeanneret2e3051a2019-05-11 15:01:46 -0400127 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openolt-adapter:${DOCKER_TAG}"
Matt Jeanneret13643e02019-01-30 16:49:03 -0500128 command: [
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400129 "/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 Jeanneretf4d4d352019-02-14 11:26:13 -0500135 ]
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400136 ports:
137 - "50062:50062"
Matt Jeanneretf4d4d352019-02-14 11:26:13 -0500138 networks:
Mahir Gunyel7b1e0642020-06-12 16:22:47 -0700139 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400140 restart: unless-stopped
Matt Jeanneretf4d4d352019-02-14 11:26:13 -0500141
142
143 adapter_openonu:
Matt Jeanneret2e3051a2019-05-11 15:01:46 -0400144 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openonu-adapter:${DOCKER_TAG}"
Matt Jeanneretf4d4d352019-02-14 11:26:13 -0500145 command: [
146 "/voltha/adapters/brcm_openomci_onu/main.py",
Matt Jeanneret0105a1f2019-02-21 09:19:57 -0500147 "--name=brcm_openomci_onu",
Matt Jeanneretf4d4d352019-02-14 11:26:13 -0500148 "--kafka_adapter=${DOCKER_HOST_IP}:9092",
149 "--kafka_cluster=${DOCKER_HOST_IP}:9092",
Matt Jeanneret4e241952019-02-28 11:16:04 -0500150 "--backend=etcd",
151 "--etcd=${DOCKER_HOST_IP}:2379",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400152 "--core_topic=rwcore",
153 "--log_level=DEBUG"
Matt Jeanneret13643e02019-01-30 16:49:03 -0500154 ]
155 networks:
156 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400157 restart: unless-stopped