blob: 4bf9271d46a91397002d762b49943d776166793f [file] [log] [blame]
BjornMagnussonXA80a92002020-03-19 14:31:06 +01001# ============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
18version: '3'
19
20networks:
21 default:
22 external:
23 name: ${DOCKER_SIM_NWNAME}
24
25services:
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
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010036 labels:
37 - "nrttest_app=CONSUL"
38 - "nrttest_dp=${CONSUL_DISPLAY_NAME}"
BjornMagnussonXA80a92002020-03-19 14:31:06 +010039
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}
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010051 labels:
52 - "nrttest_app=CBS"
53 - "nrttest_dp=${CBS_DISPLAY_NAME}"
BjornMagnussonXA80a92002020-03-19 14:31:06 +010054