浏览代码

Use host network

Arkadiusz Ryś 1 年之前
父节点
当前提交
9a28e1190a

+ 1 - 1
data/mocka/configuration.toml

@@ -2,4 +2,4 @@
 host = "0.0.0.0"
 port = 7999
 [octiva]
-storage_base_uri = "http://backend:5000"
+storage_base_uri = "http://localhost:5000"

二进制
data/mocka/rail_image.jpg


二进制
data/mocka/rail_image_annotated.jpg


+ 1 - 1
data/spendpoint/configuration.toml

@@ -6,7 +6,7 @@ port = 8000
 name = "outliers"
 namespace = "https://ontology.rys.app/dt/function/outlier"
 call = "outlier_service"
-endpoint = "http://outliers:9090/api/csv/outlier"
+endpoint = "http://localhost:9090/api/csv/outlier"
 timeout = 60 # How many seconds we wait for a result
 
 [[services]]

+ 2 - 2
data/wee/application.properties

@@ -1,8 +1,8 @@
 server.port=8081
 base_url=http://localhost:8081/
 spring.application.name=wee
-endpoint=http://fuseki:3030/SystemDesignOntology2Layers
-storageURL=http://backend:5000
+endpoint=http://localhost:3030/SystemDesignOntology2Layers
+storageURL=http://localhost:5000
 spring.servlet.multipart.max-file-size=500MB
 spring.servlet.multipart.max-request-size=500MB
 server.tomcat.max-http-post-size=629145600000

+ 10 - 3
docker-compose.yml

@@ -4,6 +4,7 @@ services:
   fuseki:
     image: registry.rys.one/dtdesign/fuseki
     container_name: fuseki
+    network_mode: "host"
     ports:
       - "3030:3030"
     restart: unless-stopped
@@ -16,6 +17,7 @@ services:
   spendpoint:
     image: registry.rys.one/dtdesign/spendpoint:dev
     container_name: spendpoint
+    network_mode: "host"
     ports:
       - "8000:8000"
     restart: unless-stopped
@@ -25,6 +27,7 @@ services:
   mocka:
     image: registry.rys.one/dtdesign/mocka
     container_name: mocka
+    network_mode: "host"
     ports:
       - "7999:7999"
     restart: unless-stopped
@@ -34,6 +37,7 @@ services:
   outliers:
     image: registry.rys.one/dtdesign/dtdesign/outliers:dev
     container_name: outliers
+    network_mode: "host"
     ports:
       - "9090:9090"
     restart: unless-stopped
@@ -43,8 +47,9 @@ services:
   drawio:
     image: registry.rys.one/diagram/drawio:dev
     container_name: drawio
+    network_mode: "host"
     ports:
-      - "8445:8080"
+      - "8080:8080"
       - "8443:8443"
     restart: unless-stopped
     volumes:
@@ -65,6 +70,7 @@ services:
   wee:
     image: registry.rys.one/dtdesign/wee:dev
     container_name: wee
+    network_mode: "host"
     ports:
       - "8081:8081"
     restart: unless-stopped
@@ -74,6 +80,7 @@ services:
   backend:
     image: registry.rys.one/dtdesign/drawio2oml/backend:dev
     container_name: backend
+    network_mode: "host"
     ports:
       - "5000:5000"
     restart: unless-stopped
@@ -81,5 +88,5 @@ services:
       - "./data/backend/ontology/SystemDesignOntology2Layers:/app/ontology:Z"
       - "./data/backend/shape_lib:/app/shape_lib:z"
     environment:
-      - WEE_ENDPOINT=http://wee:8081
-      - FUSEKI_ENDPOINT=http://fuseki:3030
+      - WEE_ENDPOINT=http://localhost:8081
+      - FUSEKI_ENDPOINT=http://localhost:3030

+ 1 - 1
init.sh

@@ -2,6 +2,6 @@
 
 rm -rf ./DTDesign
 git clone https://msdl.uantwerpen.be/git/lucasalbertins/DTDesign.git 
-git -C DTDesign checkout main
+git -C DTDesign checkout octiva-docker
 mv ./DTDesign/examples/oml/SystemDesignOntology2Layers data/backend/ontology
 rm -rf ./DTDesign