Browse Source

Make docker use the reverse proxy

davidfowl/common-services
David Fowler 1 year ago
committed by Reuben Bond
parent
commit
40315c69d7
3 changed files with 10 additions and 7 deletions
  1. +4
    -4
      src/ApiGateways/Web.Bff.Shopping/aggregator/appsettings.json
  2. +6
    -2
      src/docker-compose.override.yml
  3. +0
    -1
      src/docker-compose.yml

+ 4
- 4
src/ApiGateways/Web.Bff.Shopping/aggregator/appsettings.json View File

@ -94,28 +94,28 @@
"Clusters": {
"basket": {
"Destinations": {
"basket/destination0": {
"destination0": {
"Address": "http://localhost:5221"
}
}
},
"catalog": {
"Destinations": {
"catalog/destination0": {
"destination0": {
"Address": "http://localhost:5222"
}
}
},
"orders": {
"Destinations": {
"orders/destination0": {
"destination0": {
"Address": "http://localhost:5224"
}
}
},
"signalr": {
"Destinations": {
"signalr/destination0": {
"destination0": {
"Address": "http://localhost:5225"
}
}


+ 6
- 2
src/docker-compose.override.yml View File

@ -213,6 +213,10 @@ services:
- urls__grpcBasket=http://basket-api:81
- urls__grpcCatalog=http://catalog-api:81
- urls__grpcOrdering=http://ordering-api:81
- ReverseProxy__Clusters__basket__Destinations__destination0__Address=http://basket-api
- ReverseProxy__Clusters__catalog__Destinations__destination0__Address=http://catalog-api
- ReverseProxy__Clusters__orders__Destinations__destination0__Address=http://ordering-api
- ReverseProxy__Clusters__signalr__Destinations__destination0__Address=http://ordering-signalrhub
- CatalogUrlHC=http://catalog-api/hc
- OrderingUrlHC=http://ordering-api/hc
- IdentityUrlHC=http://identity-api/hc
@ -286,9 +290,9 @@ services:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- PurchaseUrl=http://webshoppingapigw
- PurchaseUrl=http://webshoppingagg
- IdentityUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
- SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
- SignalrHubUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
- IdentityUrlHC=http://identity-api/hc
- UseCustomizationData=True
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}


+ 0
- 1
src/docker-compose.yml View File

@ -147,7 +147,6 @@ services:
dockerfile: Web/WebMVC/Dockerfile
depends_on:
- webshoppingagg
- webshoppingapigw
webhooks-client:
image: ${REGISTRY:-eshop}/webhooks.client:${PLATFORM:-linux}-${TAG:-latest}


Loading…
Cancel
Save