From d1a363d274f47cd0a3b04ba7e93a0ba5b29cc9db Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Fri, 1 Apr 2022 02:27:32 +0300 Subject: [PATCH] added Docker environment files --- .../appsettings.Docker.json | 100 ++++++++++++++++++ .../appsettings.Docker.json | 46 ++++++++ 2 files changed, 146 insertions(+) create mode 100644 gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json create mode 100644 services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json new file mode 100644 index 00000000..6e3ee56f --- /dev/null +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json @@ -0,0 +1,100 @@ +{ + "ReverseProxy": { + "Routes": { + "Account Service": { + "ClusterId": "accountCluster", + "Match": { + "Path": "/api/account/{**everything}" + } + }, + "Administration Service": { + "ClusterId": "administrationCluster", + "Match": { + "Path": "/api/abp/{**everything}" + } + }, + "Catalog Service": { + "ClusterId": "catalogCluster", + "Match": { + "Path": "/api/catalog/{**everything}" + } + }, + "Basket Service": { + "ClusterId": "basketCluster", + "Match": { + "Path": "/api/basket/{**everything}" + } + }, + "Ordering Service": { + "ClusterId": "orderingCluster", + "Match": { + "Path": "/api/ordering/{**everything}" + } + }, + "Payment Service": { + "ClusterId": "paymentCluster", + "Match": { + "Path": "/api/payment/{**everything}" + } + }, + "product-picture-route": { + "ClusterId": "productPictureCluster", + "Match": { + "Path": "/product-images/{**everything}", + "Methods" : [ "GET" ] + } + } + }, + "Clusters": { + "accountCluster": { + "Destinations": { + "destination1": { + "Address": "http://app-authserver" + } + } + }, + "administrationCluster": { + "Destinations": { + "destination1": { + "Address": "http://administration-service" + } + } + }, + "catalogCluster": { + "Destinations": { + "destination1": { + "Address": "http://catalog-service" + } + } + }, + "basketCluster": { + "Destinations": { + "destination1": { + "Address": "http://basket-service" + } + } + }, + "orderingCluster": { + "Destinations": { + "destination1": { + "Address": "http://ordering-service" + } + } + }, + "paymentCluster": { + "Destinations": { + "destination1": { + "Address": "http://payment-service" + } + } + }, + "productPictureCluster": { + "Destinations": { + "destination1": { + "Address": "http://catalog-service" + } + } + } + } + } +} diff --git a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json new file mode 100644 index 00000000..56ef68b6 --- /dev/null +++ b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json @@ -0,0 +1,46 @@ +{ + "App": { + "SelfUrl": "https://catalog-service", + "CorsOrigins": "https://gateway-web,gateway-web-public" + }, + "AuthServer": { + "Authority": "http://app-authserver", + "RequireHttpsMetadata": "false", + "SwaggerClientId": "WebGateway_Swagger", + "SwaggerClientSecret": "1q2w3e*" + }, + "ConnectionStrings": { + "CatalogService": "mongodb://mongodb/EShopOnAbp_Catalog", + "AdministrationService": "User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Administration;Pooling=false;" + }, + "Redis": { + "Configuration": "redis" + }, + "RabbitMQ": { + "Connections": { + "Default": { + "HostName": "rabbitmq" + } + }, + "EventBus": { + "ClientName": "EShopOnAbp_CatalogService", + "ExchangeName": "EShopOnAbp" + } + }, + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://docker.host.internal:80", + "Protocols": "Http1AndHttp2" + }, + "Https": { + "Url": "https://docker.host.internal:443", + "Protocols": "Http1AndHttp2" + }, + "gRPC": { + "Url": "http://docker.host.internal:81", + "Protocols": "Http2" + } + } + } +}