blob: ff0a75181504907abf0dbc528fbdc3bb3b453c89 [file] [log] [blame]
Matt Jeanneret13643e02019-01-30 16:49:03 -05001---
Joey Armstrong7a9af442024-01-03 19:26:36 -05002# Copyright 2018-2024 Open Networking Foundation (ONF) and the ONF Contributors
Matt Jeanneret13643e02019-01-30 16:49:03 -05003# 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:
30 - 2181:2181
31 networks:
32 - default
Matt Jeanneret2e3051a2019-05-11 15:01:46 -040033 restart: unless-stopped
Matt Jeanneret13643e02019-01-30 16:49:03 -050034
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:
47 - 9092:9092
48 networks:
49 - default
Matt Jeanneret2e3051a2019-05-11 15:01:46 -040050 restart: unless-stopped
Matt Jeanneret13643e02019-01-30 16:49:03 -050051
52
53 etcd:
Matt Jeannerete36a7552019-12-13 16:13:48 -050054 image: "quay.io/coreos/etcd:v3.4.1"
Matt Jeanneret13643e02019-01-30 16:49:03 -050055 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:
67 - "2379:2379"
68 - 2380
69 - 4001
70 networks:
71 - default
Matt Jeanneret2e3051a2019-05-11 15:01:46 -040072 restart: unless-stopped
Matt Jeanneret13643e02019-01-30 16:49:03 -050073
74
75 rw_core:
Matt Jeanneret2e3051a2019-05-11 15:01:46 -040076 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-rw-core:${DOCKER_TAG}"
Matt Jeanneret13643e02019-01-30 16:49:03 -050077 entrypoint:
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070078 - /app/rw_core
79 - -kv_store_type=etcd
80 - -kv_store_address=${DOCKER_HOST_IP}:2379
81 - -banner=true
82 - -kafka_adapter_address=${DOCKER_HOST_IP}:9092
83 - -kafka_cluster_address=${DOCKER_HOST_IP}:9092
84 - -rw_core_topic=rwcore
85 - -in_competing_mode=false
86 - -log_level=DEBUG
Matt Jeanneret13643e02019-01-30 16:49:03 -050087 volumes:
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070088 - "/var/run/docker.sock:/tmp/docker.sock"
Matt Jeanneret13643e02019-01-30 16:49:03 -050089 ports:
90 - 50057:50057
91 networks:
Mahir Gunyel7b1e0642020-06-12 16:22:47 -070092 - default
Matt Jeanneret13643e02019-01-30 16:49:03 -050093 restart: unless-stopped
94
95
Matt Jeanneret13643e02019-01-30 16:49:03 -050096 ofagent:
Matt Jeanneret13eb7c62020-03-23 17:46:20 -040097 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-ofagent-go:${DOCKER_TAG}"
Matt Jeanneret13643e02019-01-30 16:49:03 -050098 command: [
Matt Jeanneret13eb7c62020-03-23 17:46:20 -040099 "/app/ofagent",
Matt Jeanneret13643e02019-01-30 16:49:03 -0500100 "--controller=${DOCKER_HOST_IP}:6653",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400101 "--voltha=${DOCKER_HOST_IP}:50057",
102 "--log_level=DEBUG"
Matt Jeanneret13643e02019-01-30 16:49:03 -0500103 ]
104 volumes:
105 - "/var/run/docker.sock:/tmp/docker.sock"
106 networks:
107 - default
108 restart: unless-stopped
109
110
Matt Jeanneret3815e322019-03-12 19:15:49 -0400111 onos:
Matt Jeanneret2e3051a2019-05-11 15:01:46 -0400112 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-onos:${DOCKER_TAG}"
Matt Jeanneret3815e322019-03-12 19:15:49 -0400113 ports:
114 - "8101:8101" # ssh
115 - "6653:6653" # OF
116 - "8181:8181" # UI
117 environment:
118 ONOS_APPS: 'drivers,openflow-base'
119 volumes:
120 - "/var/run/docker.sock:/tmp/docker.sock"
Matt Jeanneret42d4b782019-03-23 10:43:11 -0400121 - "./network-cfg.json:/root/onos/config/network-cfg.json"
Matt Jeanneret3815e322019-03-12 19:15:49 -0400122 networks:
123 - default
124 restart: unless-stopped
125
126
Matt Jeanneret13643e02019-01-30 16:49:03 -0500127 adapter_openolt:
Matt Jeanneret2e3051a2019-05-11 15:01:46 -0400128 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openolt-adapter:${DOCKER_TAG}"
Matt Jeanneret13643e02019-01-30 16:49:03 -0500129 command: [
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400130 "/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 Jeanneretf4d4d352019-02-14 11:26:13 -0500136 ]
Matt Jeanneret352fb7d2019-08-01 08:48:57 -0400137 ports:
138 - "50062:50062"
Matt Jeanneretf4d4d352019-02-14 11:26:13 -0500139 networks:
Mahir Gunyel7b1e0642020-06-12 16:22:47 -0700140 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400141 restart: unless-stopped
Matt Jeanneretf4d4d352019-02-14 11:26:13 -0500142
143
144 adapter_openonu:
Matt Jeanneret2e3051a2019-05-11 15:01:46 -0400145 image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openonu-adapter:${DOCKER_TAG}"
Matt Jeanneretf4d4d352019-02-14 11:26:13 -0500146 command: [
147 "/voltha/adapters/brcm_openomci_onu/main.py",
Matt Jeanneret0105a1f2019-02-21 09:19:57 -0500148 "--name=brcm_openomci_onu",
Matt Jeanneretf4d4d352019-02-14 11:26:13 -0500149 "--kafka_adapter=${DOCKER_HOST_IP}:9092",
150 "--kafka_cluster=${DOCKER_HOST_IP}:9092",
Matt Jeanneret4e241952019-02-28 11:16:04 -0500151 "--backend=etcd",
152 "--etcd=${DOCKER_HOST_IP}:2379",
Matt Jeanneret13eb7c62020-03-23 17:46:20 -0400153 "--core_topic=rwcore",
154 "--log_level=DEBUG"
Matt Jeanneret13643e02019-01-30 16:49:03 -0500155 ]
156 networks:
157 - default
Matt Jeanneret604196b2019-08-03 11:39:51 -0400158 restart: unless-stopped