BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 1 | # ============LICENSE_START=============================================== |
BjornMagnussonXA | 80a9200 | 2020-03-19 14:31:06 +0100 | [diff] [blame] | 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 | version: '3.0' |
| 18 | networks: |
| 19 | default: |
| 20 | external: |
| 21 | name: ${DOCKER_SIM_NWNAME} |
| 22 | services: |
| 23 | policy-agent: |
| 24 | image: ${POLICY_AGENT_IMAGE} |
| 25 | container_name: ${POLICY_AGENT_APP_NAME} |
| 26 | networks: |
BjornMagnussonXA | 72667f1 | 2020-04-24 09:20:18 +0200 | [diff] [blame] | 27 | default: |
| 28 | aliases: |
| 29 | - ${POLICY_AGENT_APP_NAME_ALIAS} |
BjornMagnussonXA | 80a9200 | 2020-03-19 14:31:06 +0100 | [diff] [blame] | 30 | ports: |
| 31 | - ${POLICY_AGENT_EXTERNAL_PORT}:${POLICY_AGENT_INTERNAL_PORT} |
BjornMagnussonXA | 72667f1 | 2020-04-24 09:20:18 +0200 | [diff] [blame] | 32 | - ${POLICY_AGENT_EXTERNAL_SECURE_PORT}:${POLICY_AGENT_INTERNAL_SECURE_PORT} |
BjornMagnussonXA | 80a9200 | 2020-03-19 14:31:06 +0100 | [diff] [blame] | 33 | environment: |
| 34 | - CONSUL_HOST=${CONSUL_HOST} |
| 35 | - CONSUL_PORT=${CONSUL_INTERNAL_PORT} |
| 36 | - CONFIG_BINDING_SERVICE=${CONFIG_BINDING_SERVICE} |
BjornMagnussonXA | e0b665e | 2021-01-08 22:19:18 +0100 | [diff] [blame] | 37 | - 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 |
BjornMagnussonXA | a69cd90 | 2021-04-22 23:46:10 +0200 | [diff] [blame] | 40 | - ${POLICY_AGENT_HOST_MNT_DIR}/db:${POLICY_AGENT_CONTAINER_MNT_DIR} |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 41 | labels: |
| 42 | - "nrttest_app=PA" |
| 43 | - "nrttest_dp=${POLICY_AGENT_DISPLAY_NAME}" |