003dbfa626595149e0fc317c011ff8945d55bd29
[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.0'
19
20 networks:
21   default:
22     external: true
23     name: ${DOCKER_SIM_NWNAME}
24 services:
25
26   consul-server:
27     networks:
28       - default
29     container_name: ${CONSUL_APP_NAME}
30     image: ${CONSUL_IMAGE}
31     ports:
32       - ${CONSUL_EXTERNAL_PORT}:${CONSUL_INTERNAL_PORT}
33     volumes:
34       - ./consul/:/consul/config
35     labels:
36       - "nrttest_app=CONSUL"
37       - "nrttest_dp=${CONSUL_DISPLAY_NAME}"
38
39   config-binding-service:
40     networks:
41       - default
42     container_name: ${CBS_APP_NAME}
43     image: ${CBS_IMAGE}
44     ports:
45       - ${CBS_EXTERNAL_PORT}:${CBS_INTERNAL_PORT}
46     environment:
47       - CONSUL_HOST=${CONSUL_HOST}
48     depends_on:
49       - ${CONSUL_HOST}
50     labels:
51       - "nrttest_app=CBS"
52       - "nrttest_dp=${CBS_DISPLAY_NAME}"
53