xf 1 gadu atpakaļ
vecāks
revīzija
90e15c7223
3 mainītis faili ar 35 papildinājumiem un 2 dzēšanām
  1. 1 1
      Id4/Properties/launchSettings.json
  2. 1 1
      build/Dockerfile
  3. 33 0
      build/docker-compose.yml

+ 1 - 1
Id4/Properties/launchSettings.json

@@ -4,7 +4,7 @@
       "commandName": "Project",
       "dotnetRunMessages": true,
       "launchBrowser": true,
-      "applicationUrl": "http://localhost:5219",
+      "applicationUrl": "http://localhost:50110",
       "environmentVariables": {
         "ASPNETCORE_ENVIRONMENT": "Development"
       }

+ 1 - 1
build/Dockerfile

@@ -1,4 +1,4 @@
 FROM  mcr.microsoft.com/dotnet/aspnet:7.0
 WORKDIR /app
 COPY out/ .
-ENTRYPOINT ["dotnet", "MyFrontEnd.dll"]
+ENTRYPOINT ["dotnet", "Id4.dll"]

+ 33 - 0
build/docker-compose.yml

@@ -0,0 +1,33 @@
+version: '3.4'
+
+services:
+  id4:
+    image: ${DOCKER_REGISTRY-fw}/id4:${TAG:-latest}
+    container_name: id4
+    environment:
+      - "TZ=Asia/Shanghai"
+    #restart: on-failure
+    ports:
+      - "50110:80"
+      - "50111:50001"
+
+  id4-dapr:
+    image: "daprio/daprd:edge"
+    command: [ "./daprd", 
+    "-app-id", "id4", 
+    "-app-port", "80",
+    "-dapr-http-port", "50112"
+    #"-components-path", "/components",
+    #"-config", "/configuration/config.yaml"
+    ]
+    #volumes:
+    #- "./dapr/components/:/components"
+    #- "./dapr/configuration/:/configuration"
+    depends_on:
+      - id4
+    network_mode: "service:id4"
+
+networks:
+  default:
+    external: true
+    name: fw-dapr-network