asp.net docker-compose添加dapr配置

docker-compose.yml添加配置

  webapplication1-dapr:
    image: "daprio/daprd:1.9.6"
    network_mode: "service:webapplication1"
    depends_on:
      - webapplication1

asp.net docker-compose添加dapr配置_第1张图片

docker-compose.override.yml中添加

  dapr-placement:
    command: ["./placement", "-port", "50000", "-log-level", "debug"]
    ports:
      - "50000:50000"
  webapplication1-dapr:
    command: ["./daprd",
      "-app-id", "webapplication1",
      "-app-port", "80",
      "-placement-host-address", "dapr-placement:50000",
      "-components-path", "/components",
      "-config", "/configuration/eshop-config.yaml"
      ]
    volumes:
      - "./dapr/components/:/components"
      - "./dapr/configuration/:/configuration"

添加了dapr的配置

你可能感兴趣的:(docker,c#,Visual,Studio,asp.net,docker,java)