Integrated gateway and updated kube support
[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 services:
27   g1:
28     image: ${RIC_SIM_IMAGE}
29     networks:
30       - default
31     ports:
32       - ${RIC_SIM_INTERNAL_PORT}/tcp
33       - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
34     environment:
35       - A1_VERSION=${G1_A1_VERSION}
36       - REMOTE_HOSTS_LOGGING=1
37       - ALLOW_HTTP=true
38     volumes:
39       - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
40     labels:
41       - "nrttest_app=RICSIM"
42       - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"
43
44   g2:
45     image: ${RIC_SIM_IMAGE}
46     networks:
47       - default
48     ports:
49       - ${RIC_SIM_INTERNAL_PORT}/tcp
50       - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
51     environment:
52       - A1_VERSION=${G2_A1_VERSION}
53       - REMOTE_HOSTS_LOGGING=1
54       - ALLOW_HTTP=true
55     volumes:
56       - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
57     labels:
58       - "nrttest_app=RICSIM"
59       - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"
60
61   g3:
62     image: ${RIC_SIM_IMAGE}
63     networks:
64       - default
65     ports:
66       - ${RIC_SIM_INTERNAL_PORT}/tcp
67       - ${RIC_SIM_INTERNAL_SECURE_PORT}/tcp
68     environment:
69       - A1_VERSION=${G3_A1_VERSION}
70       - REMOTE_HOSTS_LOGGING=1
71       - ALLOW_HTTP=true
72     volumes:
73       - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
74     labels:
75       - "nrttest_app=RICSIM"
76       - "nrttest_dp=${RIC_SIM_DISPLAY_NAME}"