blob: 2261151667c3a48b221afeb27b928a7cbe1ab7d2 [file] [log] [blame]
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +01001# ============LICENSE_START===============================================
BjornMagnussonXA80a92002020-03-19 14:31:06 +01002# 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#
17version: '3.0'
18networks:
19 default:
20 external:
21 name: ${DOCKER_SIM_NWNAME}
22services:
23 policy-agent:
24 image: ${POLICY_AGENT_IMAGE}
25 container_name: ${POLICY_AGENT_APP_NAME}
26 networks:
BjornMagnussonXA72667f12020-04-24 09:20:18 +020027 default:
28 aliases:
29 - ${POLICY_AGENT_APP_NAME_ALIAS}
BjornMagnussonXA80a92002020-03-19 14:31:06 +010030 ports:
31 - ${POLICY_AGENT_EXTERNAL_PORT}:${POLICY_AGENT_INTERNAL_PORT}
BjornMagnussonXA72667f12020-04-24 09:20:18 +020032 - ${POLICY_AGENT_EXTERNAL_SECURE_PORT}:${POLICY_AGENT_INTERNAL_SECURE_PORT}
BjornMagnussonXA80a92002020-03-19 14:31:06 +010033 environment:
34 - CONSUL_HOST=${CONSUL_HOST}
35 - CONSUL_PORT=${CONSUL_INTERNAL_PORT}
36 - CONFIG_BINDING_SERVICE=${CONFIG_BINDING_SERVICE}
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010037 - HOSTNAME=${POLICY_AGENT_CONFIG_KEY}
38 volumes:
39 - ${POLICY_AGENT_HOST_MNT_DIR}/$POLICY_AGENT_CONFIG_FILE:${POLICY_AGENT_CONFIG_MOUNT_PATH}/$POLICY_AGENT_CONFIG_FILE
BjornMagnussonXAa69cd902021-04-22 23:46:10 +020040 - ${POLICY_AGENT_HOST_MNT_DIR}/db:${POLICY_AGENT_CONTAINER_MNT_DIR}
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010041 labels:
42 - "nrttest_app=PA"
43 - "nrttest_dp=${POLICY_AGENT_DISPLAY_NAME}"