代码拉取完成,页面将自动刷新
version: '3.4'
# The default docker-compose.override file can use the "localhost" as the external name for testing web apps within the same dev machine.
# The ESHOP_EXTERNAL_DNS_NAME_OR_IP environment variable is taken, by default, from the ".env" file defined like:
# ESHOP_EXTERNAL_DNS_NAME_OR_IP=localhost
# but values present in the environment vars at runtime will always override those defined inside the .env file
services:
maildev:
ports:
- "5500:80"
rabbitmq:
ports:
- "5672:5672"
redis:
image: redis:alpine
ports:
- "5379:6379"
seq:
environment:
- ACCEPT_EULA=Y
ports:
- "5340:80"
sqldata:
environment:
- SA_PASSWORD=Pass@word
- ACCEPT_EULA=Y
ports:
- "5433:1433"
volumes:
- eshop-sqldata:/var/opt/mssql
zipkin:
ports:
- "5411:9411"
basket-api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- IdentityUrl=http://identity-api
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
- SeqServerUrl=http://seq
ports:
- "5103:80"
- "50001:50001"
basket-api-dapr:
command: ["./daprd",
"-app-id", "basket-api",
"-app-port", "80",
"-components-path", "/components",
"-config", "/configuration/eshop-config.yaml"
]
volumes:
- "./dapr/components/:/components"
- "./dapr/configuration/:/configuration"
blazor-client:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- ApiGatewayUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
- SeqServerUrl=http://seq
ports:
- "5104:80"
catalog-api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- RetryMigrations=true
- SeqServerUrl=http://seq
ports:
- "5101:80"
- "50002:50001"
catalog-api-dapr:
command: ["./daprd",
"-app-id", "catalog-api",
"-app-port", "80",
"-components-path", "/components",
"-config", "/configuration/eshop-config.yaml"
]
volumes:
- "./dapr/components/:/components"
- "./dapr/configuration/:/configuration"
identity-api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- SeqServerUrl=http://seq
- RetryMigrations=true
- BlazorClientUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
- BasketApiUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
- OrderingApiUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
- ShoppingAggregatorApiUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
ports:
- "5105:80"
- "50009:50001"
identity-api-dapr:
command: ["./daprd",
"-app-id", "identity-api",
"-app-port", "80",
"-placement-host-address", "dapr-placement:50000",
"-components-path", "/components",
"-config", "/configuration/eshop-config.yaml"
]
volumes:
- "./dapr/components/:/components"
- "./dapr/configuration/:/configuration"
ordering-api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- IdentityUrl=http://identity-api
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
- RetryMigrations=true
- SeqServerUrl=http://seq
ports:
- "5102:80"
- "50003:50001"
ordering-api-dapr:
command: ["./daprd",
"-app-id", "ordering-api",
"-app-port", "80",
"-log-level", "debug",
"-placement-host-address", "dapr-placement:50000",
"-components-path", "/components",
"-config", "/configuration/eshop-config.yaml"
]
volumes:
- "./dapr/components/:/components"
- "./dapr/configuration/:/configuration"
payment-api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- SeqServerUrl=http://seq
ports:
- "5108:80"
- "50006:50001"
payment-api-dapr:
command: ["./daprd",
"-app-id", "payment-api",
"-app-port", "80",
"-components-path", "/components",
"-config", "/configuration/eshop-config.yaml"
]
volumes:
- "./dapr/components/:/components"
- "./dapr/configuration/:/configuration"
webshoppingagg:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- IdentityUrl=http://identity-api
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
- SeqServerUrl=http://seq
- BasketUrlHC=http://basket-api/hc
- CatalogUrlHC=http://catalog-api/hc
- IdentityUrlHC=http://identity-api/hc
ports:
- "5121:80"
- "50007:50001"
webshoppingagg-dapr:
command: ["./daprd",
"-app-id", "webshoppingagg",
"-app-port", "80",
"-components-path", "/components",
"-config", "/configuration/eshop-config.yaml"
]
volumes:
- "./dapr/components/:/components"
- "./dapr/configuration/:/configuration"
webshoppingapigw:
volumes:
- ./src/ApiGateways/Envoy:/etc/envoy
ports:
- "5202:80"
- "15202:8001"
- "50008:50001"
webshoppingapigw-dapr:
command: ["./daprd",
"-app-id", "webshoppingapigw",
"-app-port", "80",
"-components-path", "/components",
"-config", "/configuration/eshop-config.yaml"
]
volumes:
- "./dapr/components/:/components"
- "./dapr/configuration/:/configuration"
webstatus:
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- HealthChecksUI__HealthChecks__0__Name=Basket API
- HealthChecksUI__HealthChecks__0__Uri=http://basket-api/hc
- HealthChecksUI__HealthChecks__1__Name=Catalog API
- HealthChecksUI__HealthChecks__1__Uri=http://catalog-api/hc
- HealthChecksUI__HealthChecks__2__Name=Identity API
- HealthChecksUI__HealthChecks__2__Uri=http://identity-api/hc
- HealthChecksUI__HealthChecks__3__Name=Ordering API
- HealthChecksUI__HealthChecks__3__Uri=http://ordering-api/hc
- HealthChecksUI__HealthChecks__4__Name=Payment API
- HealthChecksUI__HealthChecks__4__Uri=http://payment-api/hc
- HealthChecksUI__HealthChecks__5__Name=Web Shopping Aggregator
- HealthChecksUI__HealthChecks__5__Uri=http://webshoppingagg/hc
- HealthChecksUI__HealthChecks__6__Name=Blazor UI Host
- HealthChecksUI__HealthChecks__6__Uri=http://blazor-client/hc
ports:
- "5107:80"
dapr-placement:
command: ["./placement", "-port", "50000", "-log-level", "debug"]
ports:
- "50000:50000"
volumes:
eshop-sqldata:
external: false
eshop-nosqldata:
external: false
eshop-basketdata:
external: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。