Adding needed docker files
[nonrtric/rapp/ransliceassurance.git] / icsversion / docker-compose.yaml
diff --git a/icsversion/docker-compose.yaml b/icsversion/docker-compose.yaml
new file mode 100644 (file)
index 0000000..e0ff69c
--- /dev/null
@@ -0,0 +1,71 @@
+#  Copyright (C) 2022 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.5'
+
+networks:
+  default:
+    driver: bridge
+    name: nonrtric-docker-net
+
+services:
+  ics:
+    build:
+      context: .
+      dockerfile: Dockerfile-ics
+    container_name: ics-sim
+    networks:
+      default:
+        aliases:
+          - ics-sim
+    ports:
+      - 8083:8083
+    environment:
+      - PRODUCER_ADDR=http://prod-sdnr-sim:3905/
+
+  prod-sdnr-sim:
+    build:
+      context: .
+      dockerfile: Dockerfile-ProdSdnc
+    container_name: prod-sdnr-sim
+    networks:
+      default:
+        aliases:
+          - prod-sdnr-sim
+    ports:
+      - 3904:3904
+      - 3905:3905
+    environment:
+      - ODU_ADDR=http://consumer-sa:8095
+
+  consumer-sa:
+    build:
+      context: .
+      dockerfile: Dockerfile
+    container_name: consumer-sa
+    networks:
+      default:
+        aliases:
+          - consumer-sa
+    ports:
+      - 8095:8095
+    environment:
+      - SDNR_USER=admin
+      - SDNR_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
+      - CONSUMER_HOST=http://consumer-sa
+      - CONSUMER_PORT=8095
+      - INFO_COORD_ADDR=http://ics-sim:8083
+      - SDNR_ADDR=http://prod-sdnr-sim:3904
+      - LOG_LEVEL=Debug
\ No newline at end of file