Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 1 | --- |
| 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 | |
| 16 | version: '2' |
| 17 | |
| 18 | networks: |
| 19 | default: |
| 20 | driver: bridge |
| 21 | |
| 22 | services: |
| 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 Jeanneret | 2e3051a | 2019-05-11 15:01:46 -0400 | [diff] [blame] | 32 | restart: unless-stopped |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 33 | |
| 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 Jeanneret | 2e3051a | 2019-05-11 15:01:46 -0400 | [diff] [blame] | 49 | restart: unless-stopped |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 50 | |
| 51 | |
| 52 | etcd: |
Matt Jeanneret | e36a755 | 2019-12-13 16:13:48 -0500 | [diff] [blame] | 53 | image: "quay.io/coreos/etcd:v3.4.1" |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 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 Jeanneret | 2e3051a | 2019-05-11 15:01:46 -0400 | [diff] [blame] | 71 | restart: unless-stopped |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 72 | |
| 73 | |
| 74 | rw_core: |
Matt Jeanneret | 2e3051a | 2019-05-11 15:01:46 -0400 | [diff] [blame] | 75 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-rw-core:${DOCKER_TAG}" |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 76 | 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 |
| 91 | volumes: |
| 92 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 93 | ports: |
| 94 | - 50057:50057 |
| 95 | networks: |
| 96 | - default |
| 97 | restart: unless-stopped |
| 98 | |
| 99 | |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 100 | |
| 101 | ofagent: |
Matt Jeanneret | 2e3051a | 2019-05-11 15:01:46 -0400 | [diff] [blame] | 102 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-ofagent:${DOCKER_TAG}" |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 103 | logging: |
| 104 | driver: "json-file" |
| 105 | options: |
| 106 | max-size: "10m" |
| 107 | max-file: "3" |
| 108 | command: [ |
| 109 | "/ofagent/ofagent/main.py", |
| 110 | "--consul=${DOCKER_HOST_IP}:8500", |
| 111 | "--controller=${DOCKER_HOST_IP}:6653", |
| 112 | "--grpc-endpoint=${DOCKER_HOST_IP}:50057", |
| 113 | "--instance-id-is-container-name", |
| 114 | "-v" |
| 115 | ] |
| 116 | volumes: |
| 117 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 118 | networks: |
| 119 | - default |
| 120 | restart: unless-stopped |
| 121 | |
| 122 | |
Matt Jeanneret | 3815e32 | 2019-03-12 19:15:49 -0400 | [diff] [blame] | 123 | onos: |
Matt Jeanneret | 2e3051a | 2019-05-11 15:01:46 -0400 | [diff] [blame] | 124 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-onos:${DOCKER_TAG}" |
Matt Jeanneret | 3815e32 | 2019-03-12 19:15:49 -0400 | [diff] [blame] | 125 | ports: |
| 126 | - "8101:8101" # ssh |
| 127 | - "6653:6653" # OF |
| 128 | - "8181:8181" # UI |
| 129 | environment: |
| 130 | ONOS_APPS: 'drivers,openflow-base' |
| 131 | volumes: |
| 132 | - "/var/run/docker.sock:/tmp/docker.sock" |
Matt Jeanneret | 42d4b78 | 2019-03-23 10:43:11 -0400 | [diff] [blame] | 133 | - "./network-cfg.json:/root/onos/config/network-cfg.json" |
Matt Jeanneret | 3815e32 | 2019-03-12 19:15:49 -0400 | [diff] [blame] | 134 | networks: |
| 135 | - default |
| 136 | restart: unless-stopped |
| 137 | |
| 138 | |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 139 | adapter_openolt: |
Matt Jeanneret | 2e3051a | 2019-05-11 15:01:46 -0400 | [diff] [blame] | 140 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openolt-adapter:${DOCKER_TAG}" |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 141 | command: [ |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 142 | "/app/openolt", |
| 143 | "--kafka_adapter_host=${DOCKER_HOST_IP}", |
| 144 | "--kafka_adapter_port=9092", |
| 145 | "--kafka_cluster_host=${DOCKER_HOST_IP}", |
| 146 | "--kafka_cluster_port=9092", |
| 147 | "--core_topic=rwcore", |
| 148 | "--kv_store_host=${DOCKER_HOST_IP}", |
| 149 | "--kv_store_port=2379" |
Matt Jeanneret | f4d4d35 | 2019-02-14 11:26:13 -0500 | [diff] [blame] | 150 | ] |
Matt Jeanneret | 352fb7d | 2019-08-01 08:48:57 -0400 | [diff] [blame] | 151 | ports: |
| 152 | - "50062:50062" |
Matt Jeanneret | f4d4d35 | 2019-02-14 11:26:13 -0500 | [diff] [blame] | 153 | networks: |
| 154 | - default |
Matt Jeanneret | 604196b | 2019-08-03 11:39:51 -0400 | [diff] [blame] | 155 | restart: unless-stopped |
Matt Jeanneret | f4d4d35 | 2019-02-14 11:26:13 -0500 | [diff] [blame] | 156 | |
| 157 | |
| 158 | adapter_openonu: |
Matt Jeanneret | 2e3051a | 2019-05-11 15:01:46 -0400 | [diff] [blame] | 159 | image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-openonu-adapter:${DOCKER_TAG}" |
Matt Jeanneret | f4d4d35 | 2019-02-14 11:26:13 -0500 | [diff] [blame] | 160 | command: [ |
| 161 | "/voltha/adapters/brcm_openomci_onu/main.py", |
| 162 | "-v", |
Matt Jeanneret | 0105a1f | 2019-02-21 09:19:57 -0500 | [diff] [blame] | 163 | "--name=brcm_openomci_onu", |
Matt Jeanneret | f4d4d35 | 2019-02-14 11:26:13 -0500 | [diff] [blame] | 164 | "--kafka_adapter=${DOCKER_HOST_IP}:9092", |
| 165 | "--kafka_cluster=${DOCKER_HOST_IP}:9092", |
Matt Jeanneret | 4e24195 | 2019-02-28 11:16:04 -0500 | [diff] [blame] | 166 | "--backend=etcd", |
| 167 | "--etcd=${DOCKER_HOST_IP}:2379", |
Matt Jeanneret | 13643e0 | 2019-01-30 16:49:03 -0500 | [diff] [blame] | 168 | "--core_topic=rwcore" |
| 169 | ] |
| 170 | networks: |
| 171 | - default |
Matt Jeanneret | 604196b | 2019-08-03 11:39:51 -0400 | [diff] [blame] | 172 | restart: unless-stopped |