Updated tye yaml

This commit is contained in:
Sumit Ghosh 2020-08-23 17:39:44 +05:30
parent 0a66edc61b
commit c10b4ac934
3 changed files with 63 additions and 33 deletions

View File

@ -28,13 +28,14 @@ static_resources:
prefix: "/m/"
route:
auto_host_rewrite: true
prefix_rewrite: "/marketing-api/"
prefix_rewrite: "/"
cluster: marketing
- name: "m-long"
match:
prefix: "/marketing-api/"
route:
auto_host_rewrite: true
prefix_rewrite: "/"
cluster: marketing
http_filters:
- name: envoy.router
@ -59,17 +60,17 @@ static_resources:
clusters:
- name: marketing
connect_timeout: 0.25s
type: logical_dns
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: marketing-api
port_value: 80
address: host.docker.internal
port_value: 5110
- name: locations
connect_timeout: 0.25s
type: logical_dns
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: locations-api
address: host.docker.internal
port_value: 80

View File

@ -28,7 +28,7 @@ static_resources:
prefix: "/c/"
route:
auto_host_rewrite: true
prefix_rewrite: "/catalog-api/"
prefix_rewrite: "/"
cluster: catalog
- name: "c-long"
match:
@ -41,7 +41,7 @@ static_resources:
prefix: "/o/"
route:
auto_host_rewrite: true
prefix_rewrite: "/ordering-api/"
prefix_rewrite: "/"
cluster: ordering
- name: "o-long"
match:
@ -61,7 +61,7 @@ static_resources:
prefix: "/b/"
route:
auto_host_rewrite: true
prefix_rewrite: "/basket-api/"
prefix_rewrite: "/"
cluster: basket
- name: "b-long"
match:
@ -103,37 +103,37 @@ static_resources:
lb_policy: round_robin
hosts:
- socket_address:
address: webshoppingagg
port_value: 80
address: host.docker.internal
port_value: 5121
- name: catalog
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: catalog-api
port_value: 80
address: host.docker.internal
port_value: 5101
- name: basket
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: basket-api
port_value: 80
address: host.docker.internal
port_value: 5103
- name: ordering
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: ordering-api
port_value: 80
address: host.docker.internal
port_value: 5102
- name: signalr-hub
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: ordering-signalrhub
port_value: 80
address: host.docker.internal
port_value: 5112

View File

@ -1,15 +1,6 @@
name: eshoponcontainers-servicesandwebapps
services:
- name: seq
image: datalust/seq:latest
bindings:
- port: 5340
containerPort: 80
env:
- name: ACCEPT_EULA
value: Y
- name: sqldata
image: mcr.microsoft.com/mssql/server:2017-latest
bindings:
@ -30,7 +21,7 @@ services:
- port: 27017
containerPort: 27017
volumes:
- source: eshop-nosqldata-three
- source: eshop-nosqldata-four
target: /data/db
- name: basketdata
@ -52,6 +43,15 @@ services:
port: 5672
containerPort: 5672
- name: seq
image: datalust/seq:latest
bindings:
- port: 5340
containerPort: 80
env:
- name: ACCEPT_EULA
value: Y
- name: identity-api
project: Services/Identity/Identity.API/Identity.API.csproj
env:
@ -651,6 +651,8 @@ services:
value: http://localhost:5100/
- name: LocationsUrl
value: http://localhost:5109/
- name: SignalrHubUrl
value: http://localhost:5202
- name: IdentityUrlHC
value: http://localhost:5105/hc
- name: IsClusterEnv
@ -678,6 +680,33 @@ services:
port: 5100
protocol: http
- name: webspa
project: Web/WebSPA/WebSPA.csproj
env:
- name: ASPNETCORE_ENVIRONMENT
value: Development
- name: ASPNETCORE_URLS
value: http://0.0.0.0:80
- name: IdentityUrl
value: http://localhost:5105
- name: PurchaseUrl
value: http://localhost:5202
- name: MarketingUrl
value: http://localhost:5203
- name: IdentityUrlHC
value: http://localhost:5105/hc
- name: UseCustomizationData
value: True
- name: ApplicationInsights__InstrumentationKey
value:
- name: OrchestratorType
value:
- name: SignalrHubUrl
value: http://localhost:5202
bindings:
- name: http-port-80-binding
port: 5104
protocol: http
- name: webhooks-client
project: Web/WebhookClient/WebhookClient.csproj