blob: 6f24e8dbab1a710e758484984e998edbd3bb34f1 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
sgovindacc736782017-05-02 20:06:37 +053014version: '2'
15services:
16
Stephane Barbariecd51f992017-09-07 16:37:02 -040017 #
18 # Single-node consul agent
19 #
Jonathan Hart87314cd2018-02-12 17:15:35 -080020 vconsul:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -040021 image: "${REGISTRY}consul:0.9.2"
sathishg5194e892017-06-30 16:46:26 +053022 command: agent -server -bootstrap -client 0.0.0.0 -ui
23 ports:
24 - "8300:8300"
25 - "8400:8400"
26 - "8500:8500"
27 - "8600:8600/udp"
28 environment:
29 #SERVICE_53_IGNORE: "yes"
30 SERVICE_8300_IGNORE: "yes"
31 SERVICE_8400_IGNORE: "yes"
32 SERVICE_8500_NAME: "consul-rest"
33 #
34 # Registrator
35 #
36 registrator:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -040037 image: "${REGISTRY}gliderlabs/registrator:latest"
sathishg5194e892017-06-30 16:46:26 +053038 command: [
39 "-ip=${DOCKER_HOST_IP}",
40 "-retry-attempts", "100",
41 "-cleanup",
42 # "-internal",
Jonathan Hart87314cd2018-02-12 17:15:35 -080043 "consul://vconsul:8500"
sathishg5194e892017-06-30 16:46:26 +053044 ]
45 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -080046 - vconsul
sathishg5194e892017-06-30 16:46:26 +053047 volumes:
48 - "/var/run/docker.sock:/tmp/docker.sock"
Stephane Barbariecd51f992017-09-07 16:37:02 -040049
50 #
51 # Fluentd log server
52 #
53 fluentd:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -040054 image: "${REGISTRY}${REPOSITORY}fluent/fluentd:v0.12.42"
Stephane Barbariecd51f992017-09-07 16:37:02 -040055 ports:
56 - "24224:24224"
57 volumes:
58 - "/tmp/fluentd:/fluentd/log"
59 environment:
60 SERVICE_24224_NAME: "fluentd-intake"
61
sathishg5194e892017-06-30 16:46:26 +053062 #
63 # Voltha server instance(s)
64 #
sgovindacc736782017-05-02 20:06:37 +053065 voltha:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -040066 image: "${REGISTRY}${REPOSITORY}voltha-voltha${TAG}"
sgovindacc736782017-05-02 20:06:37 +053067 command: [
68 "/voltha/voltha/main.py",
sathishg5194e892017-06-30 16:46:26 +053069 "-v",
70 "--consul=${DOCKER_HOST_IP}:8500",
sgovindacc736782017-05-02 20:06:37 +053071 "--rest-port=8880",
Stephane Barbariecd51f992017-09-07 16:37:02 -040072 "--grpc-port=50556",
73 "--kafka=@kafka",
74 "--instance-id-is-container-name",
75 "--interface=eth1",
sathishg5194e892017-06-30 16:46:26 +053076 "--backend=consul",
77 "-v"
sgovindacc736782017-05-02 20:06:37 +053078 ]
79 ports:
Stephane Barbariecd51f992017-09-07 16:37:02 -040080 - 8880
81 - 50556
sgovindacc736782017-05-02 20:06:37 +053082 - 18880
Stephane Barbariecd51f992017-09-07 16:37:02 -040083 - "60001:60001"
sathishg5194e892017-06-30 16:46:26 +053084 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -080085 - vconsul
sathishg5194e892017-06-30 16:46:26 +053086 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -080087 - vconsul
Stephane Barbariecd51f992017-09-07 16:37:02 -040088 environment:
89 SERVICE_8880_NAME: "voltha-health"
90 SERVICE_8880_CHECK_HTTP: "/health"
91 SERVICE_8880_CHECK_INTERVAL: "5s"
92 SERVICE_8880_CHECK_TIMEOUT: "1s"
93 SERVICE_18880_NAME: "voltha-sim-rest"
94 SERVICE_HOST_IP: "${DOCKER_HOST_IP}"
sgovindacc736782017-05-02 20:06:37 +053095 volumes:
96 - "/var/run/docker.sock:/tmp/docker.sock"
Stephane Barbariecd51f992017-09-07 16:37:02 -040097 networks:
98 - default
99 - ponmgmt
100
101 envoy:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400102 image: "${REGISTRY}${REPOSITORY}voltha-envoy${TAG}"
Stephane Barbariecd51f992017-09-07 16:37:02 -0400103 entrypoint:
104 - /usr/local/bin/envoyd
105 - -envoy-cfg-template
106 - "/envoy/voltha-grpc-proxy.template.json"
107 - -envoy-config
108 - "/envoy/voltha-grpc-proxy.json"
Jonathan Hart87314cd2018-02-12 17:15:35 -0800109 - -consul-svc-nme
110 - "vconsul"
111 - -kv-svc-name
112 - "vconsul"
Stephane Barbariecd51f992017-09-07 16:37:02 -0400113 ports:
114 - "50555:50555"
115 - "8882:8882"
116 - "8443:8443"
117 - "8001:8001"
118 environment:
119 SERVICE_50555_NAME: "voltha-grpc"
120 volumes:
121 - "/var/run/docker.sock:/tmp/docker.sock"
122 networks:
123 - default
124 - ponmgmt
125 links:
126 - voltha:vcore
127 #
128 # Voltha cli container
129 #
David K. Bainbridgebba65ff2018-01-19 09:26:09 -0800130 cli:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400131 image: "${REGISTRY}${REPOSITORY}voltha-cli${TAG}"
Stephane Barbariecd51f992017-09-07 16:37:02 -0400132 command: [
133 "/cli/cli/setup.sh",
134 "-L",
135 "-G"
136 ]
137 environment:
138 DOCKER_HOST_IP: "${DOCKER_HOST_IP}"
139 ports:
140 - "5022:22"
141 depends_on:
142 - voltha
143
sgovindacc736782017-05-02 20:06:37 +0530144 #
sgovindacc736782017-05-02 20:06:37 +0530145 # onos-1
146 #
147 onos1:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400148 image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}"
sgovindacc736782017-05-02 20:06:37 +0530149 container_name: onos1
150 ports:
151 - 6633:6653
152 - 8101:8101
153 - 8181:8181
154 environment:
155 ONOS_APPS: drivers,openflow
156 volumes:
157 - "/var/run/docker.sock:/tmp/docker.sock"
158 restart: unless-stopped
159
160 #
161 # onos-2
162 #
163 onos2:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400164 image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}"
sgovindacc736782017-05-02 20:06:37 +0530165 container_name: onos2
166 ports:
167 - 6644:6653
168 - 8102:8101
169 - 8182:8181
170 environment:
171 ONOS_APPS: drivers,openflow
172 volumes:
173 - "/var/run/docker.sock:/tmp/docker.sock"
174 restart: unless-stopped
175
176 #
177 # onos-3
178 #
179 onos3:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400180 image: "${REGISTRY}${REPOSITORY}voltha-onos${TAG}"
sgovindacc736782017-05-02 20:06:37 +0530181 container_name: onos3
182 ports:
183 - 6655:6653
184 - 8103:8101
185 - 8183:8181
186 environment:
187 ONOS_APPS: drivers,openflow
188 volumes:
189 - "/var/run/docker.sock:/tmp/docker.sock"
190 restart: unless-stopped
191 #
192 # ofagent server instance
193 #
194 ofagent:
Richard Jankowski9ac4bbd2018-03-21 11:31:02 -0400195 image: "${REGISTRY}${REPOSITORY}voltha-ofagent${TAG}"
khenaidoo50b286d2018-03-02 17:44:30 -0500196 command: /ofagent/ofagent/main.py -v --consul=${DOCKER_HOST_IP}:8500 --controller ${DOCKER_HOST_IP}:6633 ${DOCKER_HOST_IP}:6644 ${DOCKER_HOST_IP}:6655 --grpc-endpoint=@voltha-grpc --instance-id-is-container-name --enable-tls --key-file=/ofagent/pki/voltha.key --cert-file=/ofagent/pki/voltha.crt
sgovindacc736782017-05-02 20:06:37 +0530197 depends_on:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800198 - vconsul
sgovindacc736782017-05-02 20:06:37 +0530199 - voltha
Stephane Barbariecd51f992017-09-07 16:37:02 -0400200 links:
Jonathan Hart87314cd2018-02-12 17:15:35 -0800201 - vconsul
sgovindacc736782017-05-02 20:06:37 +0530202 volumes:
203 - "/var/run/docker.sock:/tmp/docker.sock"
sathishg239af452017-07-13 16:27:46 +0530204 restart: unless-stopped
Stephane Barbariecd51f992017-09-07 16:37:02 -0400205
206networks:
207 default:
208 driver: bridge
209 ponmgmt:
210 driver: bridge
211 driver_opts:
212 com.docker.network.bridge.name: "ponmgmt"