# ============LICENSE_START=============================================== # Copyright (C) 2020 Nordix Foundation. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============LICENSE_END================================================= # version: '3.0' networks: default: external: true name: ${DOCKER_SIM_NWNAME} services: policy-agent: image: ${POLICY_AGENT_IMAGE} container_name: ${POLICY_AGENT_APP_NAME} networks: default: aliases: - ${POLICY_AGENT_APP_NAME_ALIAS} ports: - ${POLICY_AGENT_EXTERNAL_PORT}:${POLICY_AGENT_INTERNAL_PORT} - ${POLICY_AGENT_EXTERNAL_SECURE_PORT}:${POLICY_AGENT_INTERNAL_SECURE_PORT} environment: - CONSUL_HOST=${CONSUL_HOST} - CONSUL_PORT=${CONSUL_INTERNAL_PORT} - CONFIG_BINDING_SERVICE=${CONFIG_BINDING_SERVICE} - HOSTNAME=${POLICY_AGENT_CONFIG_KEY} volumes: - ${POLICY_AGENT_HOST_MNT_DIR}/$POLICY_AGENT_CONFIG_FILE:${POLICY_AGENT_CONFIG_MOUNT_PATH}/$POLICY_AGENT_CONFIG_FILE - ${POLICY_AGENT_HOST_MNT_DIR}/db:${POLICY_AGENT_CONTAINER_MNT_DIR} labels: - "nrttest_app=PA" - "nrttest_dp=${POLICY_AGENT_DISPLAY_NAME}"