xf преди 1 година
родител
ревизия
9d5c7bfad5
променени са 3 файла, в които са добавени 62 реда и са изтрити 0 реда
  1. 25 0
      build/.dockerignore
  2. 4 0
      build/Dockerfile
  3. 33 0
      build/docker-compose.yml

+ 25 - 0
build/.dockerignore

@@ -0,0 +1,25 @@
+**/.classpath
+**/.dockerignore
+**/.env
+**/.git
+**/.gitignore
+**/.project
+**/.settings
+**/.toolstarget
+**/.vs
+**/.vscode
+**/*.*proj.user
+**/*.dbmdl
+**/*.jfm
+**/azds.yaml
+**/bin
+**/charts
+**/docker-compose*
+**/Dockerfile*
+**/node_modules
+**/npm-debug.log
+**/obj
+**/secrets.dev.yaml
+**/values.dev.yaml
+LICENSE
+README.md

+ 4 - 0
build/Dockerfile

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

+ 33 - 0
build/docker-compose.yml

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