2 Star 6 Fork 2

V-Micro / EasyDapr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
Van Zheng 提交于 2021-02-27 21:35 . # updated
version: '3.4'
services:
# identity service
identity-app:
image: identity-app:v1.0.0
build:
context: .
dockerfile: ./IdentityService/Dockerfile
depends_on:
- placement
ports:
- 5004:5004
networks:
- easydapr
identity-app-dapr:
# image: "daprio/daprd:edge"v1.0.0-rc.3
image: "daprio/daprd:1.0.0-rc.3"
command: [ "./daprd",
"--app-id", "identity-app",
"--app-port", "5004",
"--placement-host-address", "placement:50006",
"--config", "/config/config.yaml",
"--components-path", "/config/components" ]
volumes:
- "./config/:/config"
depends_on:
- identity-app
network_mode: "service:identity-app"
# inventory service
inventory-app:
image: inventory-app:v1.1.0
build:
context: .
dockerfile: ./InventoryService.Api/Dockerfile
depends_on:
- placement
ports:
- 5005:5005
networks:
- easydapr
inventory-app-dapr:
# image: "daprio/daprd:edge"v1.0.0-rc.3
image: "daprio/daprd:1.0.0-rc.3"
command: [ "./daprd",
"--app-id", "inventory-app",
"--app-port", "5005",
"--placement-host-address", "placement:50006",
"--config", "/config/config.yaml",
"--components-path", "/config/components" ]
volumes:
- "./config/:/config"
depends_on:
- inventory-app
network_mode: "service:inventory-app"
############################
# Dapr placement service
############################
placement:
image: "daprio/dapr:1.0.0-rc.3"
command: ["./placement", "-port", "50006"]
ports:
- "50006:50006"
networks:
- easydapr
networks:
easydapr:
C#
1
https://gitee.com/vmicro/easy-dapr.git
git@gitee.com:vmicro/easy-dapr.git
vmicro
easy-dapr
EasyDapr
master

搜索帮助