Merge "NONRTRIC - PMS Persistent storage of policies and type definitions"
[nonrtric.git] / test / simulator-group / consul_cbs / docker-compose.yml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2020 Nordix Foundation. All rights reserved.
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 #  ============LICENSE_END=================================================
16 #
17
18 version: '3'
19
20 networks:
21   default:
22     external:
23       name: ${DOCKER_SIM_NWNAME}
24
25 services:
26
27   consul-server:
28     networks:
29       - default
30     container_name: ${CONSUL_APP_NAME}
31     image: ${CONSUL_IMAGE}
32     ports:
33       - ${CONSUL_EXTERNAL_PORT}:${CONSUL_INTERNAL_PORT}
34     volumes:
35       - ./consul/:/consul/config
36     labels:
37       - "nrttest_app=CONSUL"
38       - "nrttest_dp=${CONSUL_DISPLAY_NAME}"
39
40   config-binding-service:
41     networks:
42       - default
43     container_name: ${CBS_APP_NAME}
44     image: ${CBS_IMAGE}
45     ports:
46       - ${CBS_EXTERNAL_PORT}:${CBS_INTERNAL_PORT}
47     environment:
48       - CONSUL_HOST=${CONSUL_HOST}
49     depends_on:
50       - ${CONSUL_HOST}
51     labels:
52       - "nrttest_app=CBS"
53       - "nrttest_dp=${CBS_DISPLAY_NAME}"
54