Adaptation of test env to helm chart
[nonrtric.git] / test / simulator-group / ric / 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
18 version: '3.0'
19
20 # Compose file to bring up 3 groups of ric simulator containers with variable interface and count
21
22 networks:
23   default:
24     external:
25       name: ${DOCKER_SIM_NWNAME}
26
27 services:
28   g1:
29     image: ${RIC_SIM_IMAGE}
30     networks:
31       - default
32     ports:
33       - ${RIC_SIM_INTERNAL_PORT}/tcp
34       - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
35     environment:
36       - A1_VERSION=${G1_A1_VERSION}
37       - REMOTE_HOSTS_LOGGING=1
38       - ALLOW_HTTP=true
39       - DUPLICATE_CHECK=1
40     volumes:
41       - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
42     labels:
43       - "nrttest_app=RICSIM"
44       - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"
45
46   g2:
47     image: ${RIC_SIM_IMAGE}
48     networks:
49       - default
50     ports:
51       - ${RIC_SIM_INTERNAL_PORT}/tcp
52       - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
53     environment:
54       - A1_VERSION=${G2_A1_VERSION}
55       - REMOTE_HOSTS_LOGGING=1
56       - ALLOW_HTTP=true
57       - DUPLICATE_CHECK=1
58     volumes:
59       - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
60     labels:
61       - "nrttest_app=RICSIM"
62       - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"
63
64   g3:
65     image: ${RIC_SIM_IMAGE}
66     networks:
67       - default
68     ports:
69       - ${RIC_SIM_INTERNAL_PORT}/tcp
70       - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
71     environment:
72       - A1_VERSION=${G3_A1_VERSION}
73       - REMOTE_HOSTS_LOGGING=1
74       - ALLOW_HTTP=true
75       - DUPLICATE_CHECK=1
76     volumes:
77       - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
78     labels:
79       - "nrttest_app=RICSIM"
80       - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"
81
82   g4:
83     image: ${RIC_SIM_IMAGE}
84     networks:
85       - default
86     ports:
87       - ${RIC_SIM_INTERNAL_PORT}/tcp
88       - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
89     environment:
90       - A1_VERSION=${G4_A1_VERSION}
91       - REMOTE_HOSTS_LOGGING=1
92       - ALLOW_HTTP=true
93       - DUPLICATE_CHECK=1
94     volumes:
95       - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
96     labels:
97       - "nrttest_app=RICSIM"
98       - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"
99
100   g5:
101     image: ${RIC_SIM_IMAGE}
102     networks:
103       - default
104     ports:
105       - ${RIC_SIM_INTERNAL_PORT}/tcp
106       - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
107     environment:
108       - A1_VERSION=${G5_A1_VERSION}
109       - REMOTE_HOSTS_LOGGING=1
110       - ALLOW_HTTP=true
111       - DUPLICATE_CHECK=1
112     volumes:
113       - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
114     labels:
115       - "nrttest_app=RICSIM"
116       - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"