Add newline to end of orchestrator/scripts/build.sh
[multicloud/k8s.git] / src / orchestrator / scripts / docker-compose.yml
1 # Copyright 2020 Intel Corporation.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #     http://www.apache.org/licenses/LICENSE-2.0
6 # Unless required by applicable law or agreed to in writing, software
7 # distributed under the License is distributed on an "AS IS" BASIS,
8 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9 # See the License for the specific language governing permissions and
10 # limitations under the License.
11
12 version: '3.0'
13
14 services:
15   orchestrator:
16     image: nexus3.onap.org:10003/onap/multicloud/k8s/orchestrator
17     build:
18       context: ./
19       args:
20         - HTTP_PROXY=${HTTP_PROXY}
21         - HTTPS_PROXY=${HTTPS_PROXY}
22         - NO_PROXY=${NO_PROXY}
23     environment:
24       - HTTP_PROXY=${HTTP_PROXY}
25       - HTTPS_PROXY=${HTTPS_PROXY}
26       - NO_PROXY=${NO_PROXY},mongo
27     depends_on:
28       - mongo
29     network_mode: host
30     volumes:
31       - /opt/csar:/opt/csar
32       - ${PWD}/config.json:/opt/multicloud/k8s/orchestrator/config.json:ro
33     ports:
34       - 9015:9015
35   mongo:
36     image: mongo
37     environment:
38       - HTTP_PROXY=${HTTP_PROXY}
39       - HTTPS_PROXY=${HTTPS_PROXY}
40       - NO_PROXY=${NO_PROXY}
41     ports:
42       - 27017:27017
43   etcd:
44     image: bitnami/etcd:3
45     environment:
46       - ALLOW_NONE_AUTHENTICATION=yes
47       - HTTP_PROXY=${HTTP_PROXY}
48       - HTTPS_PROXY=${HTTPS_PROXY}
49       - NO_PROXY=${NO_PROXY}
50     volumes:
51       - etcd_data:/bitnami/etcd
52     ports:
53       - 2379:2379
54       - 2380:2380
55 volumes:
56   etcd_data:
57     driver: local