61a9d7e0e8d28ed665718e9702af805d36e598d2
[nonrtric.git] / test / simulator-group / a1pms / 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 version: '3.0'
18 networks:
19   default:
20     external: true
21     name: ${DOCKER_SIM_NWNAME}
22 services:
23   a1pms:
24     image: ${A1PMS_IMAGE}
25     container_name: ${A1PMS_APP_NAME}
26     networks:
27       default:
28         aliases:
29           - ${A1PMS_APP_NAME_ALIAS}
30     ports:
31     - ${A1PMS_EXTERNAL_PORT}:${A1PMS_INTERNAL_PORT}
32     - ${A1PMS_EXTERNAL_SECURE_PORT}:${A1PMS_INTERNAL_SECURE_PORT}
33     environment:
34       - CONSUL_HOST=${CONSUL_HOST}
35       - CONSUL_PORT=${CONSUL_INTERNAL_PORT}
36       - CONFIG_BINDING_SERVICE=${CONFIG_BINDING_SERVICE}
37       - HOSTNAME=${A1PMS_CONFIG_KEY}
38     volumes:
39     - ${A1PMS_HOST_MNT_DIR}/$A1PMS_CONFIG_FILE:${A1PMS_CONFIG_MOUNT_PATH}/$A1PMS_CONFIG_FILE
40     - ${A1PMS_HOST_MNT_DIR}/db:${A1PMS_CONTAINER_MNT_DIR}
41     labels:
42       - "nrttest_app=A1PMS"
43       - "nrttest_dp=${A1PMS_DISPLAY_NAME}"