blob: fd8fc00d25dde1fa15a8e0ad1b0b3e51458e97a6 [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:
BjornMagnussonXA72667f12020-04-24 09:20:18 +020032 - ${RIC_SIM_PORT}/tcp
BjornMagnussonXA80a92002020-03-19 14:31:06 +010033 environment:
34 - A1_VERSION=${G1_A1_VERSION}
BjornMagnussonXA72667f12020-04-24 09:20:18 +020035 - REMOTE_HOSTS_LOGGING=1
36 volumes:
37 - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
BjornMagnussonXA80a92002020-03-19 14:31:06 +010038 g2:
39 image: ${RIC_SIM_IMAGE}
40 networks:
41 - default
42 ports:
BjornMagnussonXA72667f12020-04-24 09:20:18 +020043 - ${RIC_SIM_PORT}/tcp
BjornMagnussonXA80a92002020-03-19 14:31:06 +010044 environment:
45 - A1_VERSION=${G2_A1_VERSION}
BjornMagnussonXA72667f12020-04-24 09:20:18 +020046 - REMOTE_HOSTS_LOGGING=1
47 volumes:
48 - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro
BjornMagnussonXA80a92002020-03-19 14:31:06 +010049 g3:
50 image: ${RIC_SIM_IMAGE}
51 networks:
52 - default
53 ports:
BjornMagnussonXA72667f12020-04-24 09:20:18 +020054 - ${RIC_SIM_PORT}/tcp
BjornMagnussonXA80a92002020-03-19 14:31:06 +010055 environment:
BjornMagnussonXA72667f12020-04-24 09:20:18 +020056 - A1_VERSION=${G3_A1_VERSION}
57 - REMOTE_HOSTS_LOGGING=1
58 volumes:
59 - ${RIC_SIM_CERT_MOUNT_DIR}:/usr/src/app/cert:ro