Simplify identity configuration
[oam.git] / solution / integration / smo / common / docker-compose.yml
index e3088fd..6df241b 100755 (executable)
@@ -1,5 +1,5 @@
 ################################################################################
-# Copyright 2021 highstreet technologies GmbH
+# Copyright 2022 highstreet technologies GmbH
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,27 +18,16 @@ services:
   identity:
     image: ${IDENTITY_IMAGE}
     container_name: identity
-    ports: 
-      - ${IDENTITY_PORT}:${IDENTITY_PORT}
-    environment: 
+    ports:
+      - ${IDENTITY_PORT}:8443
+    environment:
       - KEYCLOAK_USER=${ADMIN_USERNAME}
       - KEYCLOAK_PASSWORD=${ADMIN_PASSWORD}
-      - JAVA_OPTS=-Djboss.http.port=${IDENTITY_PORT}
+      - JAVA_OPTS=-Djboss.bind.address.private=[::1] -Djboss.bind.address=[::1] -Djava.net.preferIPv6Addresses=true -Djava.net.preferIPv4Stack=false
+      - DB_VENDOR=h2
     networks:
       dmz:
-              
-  topology:
-    image: ${TOPOLOGY_IMAGE}
-    container_name: topology
-    ports:
-      - 3001:3001
-    environment:
-      - AUTH_ENABLED=true
-      - AUTH_HOST_URL=${IDENTITY_PROVIDER_URL}
-      # - AUTH_CONFIG_FILE 
-      - PROVIDERS=${TOPOLOGY_PROVIDERS}
-      - LOAD_PACKAGES=com.highstreet
+
   persistence:
     image: ${PERSISTENCE_IMAGE}
     container_name: persistence
@@ -105,6 +94,32 @@ services:
       - zookeeper
       - kafka
 
+  o-ran-sc-topology-service:
+    image: "${O_RAN_SC_TOPOLOGY_IMAGE}"
+    container_name: o-ran-sc-topology-service
+    hostname: o-ran-sc-topology-service
+    ports:
+      - 18181:8181
+    volumes:
+        - ./o-ran-sc-topology-service/tapi-common-operational.json:/opt/dev/deploy/data/tapi-common-operational.json
+        - ./o-ran-sc-topology-service/tapi-common-running.json:/opt/dev/deploy/data/tapi-common-running.json
+
+  wireshark:
+    image: "${WIRESHARK_IMAGE}"
+    container_name: wireshark
+    cap_add:
+      - NET_ADMIN
+    network_mode: host
+    environment:
+      - PUID=1000
+      - PGID=1000
+      - TZ=Europe/London
+    volumes:
+      - ./wireshark:/config
+    # no port mappbecause of network mode host.
+    # ports:
+    #   - 3000:3000
+    restart: unless-stopped
 networks:
   dmz:
     driver: bridge