blob: 37fad42d2455deaa06782cdbc4e700d92d5094b5 [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.0'
19
20# Compose file to bring up 3 groups of ric simulator containers with variable interface and count
21
YongchaoWu4e489b02020-02-24 09:18:16 +010022networks:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010023 default:
YongchaoWu4e489b02020-02-24 09:18:16 +010024 external:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010025 name: ${DOCKER_SIM_NWNAME}
YongchaoWu4e489b02020-02-24 09:18:16 +010026services:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010027 g1:
28 image: ${RIC_SIM_IMAGE}
YongchaoWu4e489b02020-02-24 09:18:16 +010029 networks:
BjornMagnussonXA80a92002020-03-19 14:31:06 +010030 - default
YongchaoWu4e489b02020-02-24 09:18:16 +010031 ports:
ecaiyanlinux99a769b2020-05-15 13:58:02 +020032 - ${RIC_SIM_INTERNAL_PORT}/tcp
33 - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
BjornMagnussonXA80a92002020-03-19 14:31:06 +010034 environment:
35 - A1_VERSION=${G1_A1_VERSION}
BjornMagnussonXA72667f12020-04-24 09:20:18 +020036 - REMOTE_HOSTS_LOGGING=1
RehanRaza7c00ce12020-06-01 17:37:13 +020037 - ALLOW_HTTP=true
BjornMagnussonXA84ffd4a2021-10-08 08:58:12 +020038 - DUPLICATE_CHECK=1
BjornMagnussonXA72667f12020-04-24 09:20:18 +020039 volumes:
40 - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010041 labels:
42 - "nrttest_app=RICSIM"
43 - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"
44
BjornMagnussonXA80a92002020-03-19 14:31:06 +010045 g2:
46 image: ${RIC_SIM_IMAGE}
47 networks:
48 - default
49 ports:
ecaiyanlinux99a769b2020-05-15 13:58:02 +020050 - ${RIC_SIM_INTERNAL_PORT}/tcp
51 - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
BjornMagnussonXA80a92002020-03-19 14:31:06 +010052 environment:
53 - A1_VERSION=${G2_A1_VERSION}
BjornMagnussonXA72667f12020-04-24 09:20:18 +020054 - REMOTE_HOSTS_LOGGING=1
RehanRaza7c00ce12020-06-01 17:37:13 +020055 - ALLOW_HTTP=true
BjornMagnussonXA84ffd4a2021-10-08 08:58:12 +020056 - DUPLICATE_CHECK=1
BjornMagnussonXA72667f12020-04-24 09:20:18 +020057 volumes:
58 - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010059 labels:
60 - "nrttest_app=RICSIM"
61 - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"
62
BjornMagnussonXA80a92002020-03-19 14:31:06 +010063 g3:
64 image: ${RIC_SIM_IMAGE}
65 networks:
66 - default
67 ports:
ecaiyanlinux99a769b2020-05-15 13:58:02 +020068 - ${RIC_SIM_INTERNAL_PORT}/tcp
69 - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
BjornMagnussonXA80a92002020-03-19 14:31:06 +010070 environment:
BjornMagnussonXA72667f12020-04-24 09:20:18 +020071 - A1_VERSION=${G3_A1_VERSION}
72 - REMOTE_HOSTS_LOGGING=1
RehanRaza7c00ce12020-06-01 17:37:13 +020073 - ALLOW_HTTP=true
BjornMagnussonXA84ffd4a2021-10-08 08:58:12 +020074 - DUPLICATE_CHECK=1
BjornMagnussonXA72667f12020-04-24 09:20:18 +020075 volumes:
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010076 - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
77 labels:
78 - "nrttest_app=RICSIM"
79 - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"