Updated function test environment
[nonrtric.git] / near-rt-ric-simulator / simulator-group / ric / docker-compose.yml
index e45e0e4..17ef5aa 100644 (file)
@@ -1,12 +1,50 @@
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2020 Nordix Foundation. All rights reserved.
+#  ========================================================================
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#  ============LICENSE_END=================================================
+#
+
+version: '3.0'
+
+# Compose file to bring up 3 groups of ric simulator containers with variable interface and count
+
 networks:
-  nonrtric-docker-net:
+  default:
     external:
-      name: nonrtric-docker-net
+      name: ${DOCKER_SIM_NWNAME}
 services:
-  ric-simulator:
-    image: ric-simulator:latest
+  g1:
+    image: ${RIC_SIM_IMAGE}
     networks:
-      nonrtric-docker-net: null
+      - default
     ports:
-    - 8085/tcp
-version: '3.0'
\ No newline at end of file
+      - ${RIC_SIM_INTERNAL_PORT}/tcp
+    environment:
+      - A1_VERSION=${G1_A1_VERSION}
+  g2:
+    image: ${RIC_SIM_IMAGE}
+    networks:
+      - default
+    ports:
+      - ${RIC_SIM_INTERNAL_PORT}/tcp
+    environment:
+      - A1_VERSION=${G2_A1_VERSION}
+  g3:
+    image: ${RIC_SIM_IMAGE}
+    networks:
+      - default
+    ports:
+      - ${RIC_SIM_INTERNAL_PORT}/tcp
+    environment:
+      - A1_VERSION=${G3_A1_VERSION}
\ No newline at end of file