0d347b13d55013db53fb5c14372b5e353101446b
[multicloud/k8s.git] / deployments / docker-compose.yml
1 # Copyright 2018 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'
13
14 services:
15   multicloud-k8s:
16     image: nexus3.onap.org:10003/onap/multicloud/k8plugin
17     build:
18       context: ./
19       args:
20         - HTTP_PROXY=$HTTP_PROXY
21         - HTTPS_PROXY=$HTTPS_PROXY
22     ports:
23       - "8081:8081"
24     environment:
25       - CSAR_DIR=/opt/csar
26       - KUBE_CONFIG_DIR=/opt/kubeconfig
27       - DATABASE_TYPE=consul
28       - DATABASE_IP=consul-svr
29     depends_on:
30       - "consul"
31     volumes:
32       - /opt/csar:/opt/csar
33       - /opt/kubeconfig:/opt/kubeconfig
34   consul:
35     image: consul
36     hostname: consul-svr
37     environment:
38       - CONSUL_LOCAL_CONFIG={"datacenter":"us_west","server":true}
39     command: ["agent", "-server", "-bootstrap-expect=1"]
40     volumes:
41       - /opt/consul/config:/consul/config