Browse Source

added environment files for Docker

pull/106/head
Galip Tolga Erdem 5 years ago
parent
commit
24e7f8c6f2
  1. 1
      apps/auth-server/src/EShopOnAbp.AuthServer/EShopOnAbpAuthServerModule.cs
  2. 42
      apps/auth-server/src/EShopOnAbp.AuthServer/appsettings.Docker.json
  3. 60
      apps/public-web/src/EShopOnAbp.PublicWeb/appsettings.Docker.json
  4. 51
      services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/appsettings.Docker.json
  5. 35
      services/basket/src/EShopOnAbp.BasketService/appsettings.Docker.json
  6. 46
      services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json
  7. 65
      services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/appsettings.Docker.json
  8. 30
      services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/appsettings.Docker.json

1
apps/auth-server/src/EShopOnAbp.AuthServer/EShopOnAbpAuthServerModule.cs

@ -185,6 +185,7 @@ public class EShopOnAbpAuthServerModule : AbpModule
app.UseJwtTokenMiddleware();
app.UseAbpSerilogEnrichers();
app.UseUnitOfWork();
app.UseForwardedHeaders();
app.UseIdentityServer();
app.UseAuthorization();
app.UseSwagger();

42
apps/auth-server/src/EShopOnAbp.AuthServer/appsettings.Docker.json

@ -0,0 +1,42 @@
{
"App": {
"SelfUrl": "https://app-authserver",
"CorsOrigins": "http://app-web,https://identity-service,https://administration-service,https://catalog-service,https://basket-service,https://ordering-service,https://payment-service",
"RedirectAllowedUrls": "http://app-web"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AuthServer": {
"Authority": "http://app-authserver",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "WebGateway_Swagger",
"SwaggerClientSecret": "1q2w3e*"
},
"AllowedHosts": "*",
"ConnectionStrings": {
"IdentityService": "User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Identity;Pooling=false;",
"AdministrationService": "User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Administration;Pooling=false;"
},
"StringEncryption": {
"DefaultPassPhrase": "gsKnGZ041HLL4IM8"
},
"Redis": {
"Configuration": "redis"
},
"RabbitMQ": {
"Connections": {
"Default": {
"HostName": "rabbitmq"
}
},
"EventBus": {
"ClientName": "EShopOnAbp_AuthServer",
"ExchangeName": "EShopOnAbp"
}
}
}

60
apps/public-web/src/EShopOnAbp.PublicWeb/appsettings.Docker.json

@ -0,0 +1,60 @@
{
"App": {
"SelfUrl": "https://app-publicweb"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"RemoteServices": {
"Default": {
"BaseUrl": "http://gateway-web-public"
}
},
"StringEncryption": {
"DefaultPassPhrase": "gsKnGZ041HLL4IM8"
},
"Redis": {
"Configuration": "redis"
},
"RabbitMQ": {
"Connections": {
"Default": {
"HostName": "rabbitmq"
}
},
"EventBus": {
"ClientName": "EShopOnAbp_PublicWeb",
"ExchangeName": "EShopOnAbp"
}
},
"AuthServer": {
"Authority": "http://app-authserver",
"RequireHttpsMetadata": "false",
"ClientId": "PublicWeb",
"ClientSecret": "1q2w3e*"
},
"ReverseProxy": {
"Routes": {
"route1" : {
"ClusterId": "cluster1",
"Match": {
"Path": "/api/{**anypath}"
}
}
},
"Clusters": {
"cluster1": {
"Destinations": {
"destination1": {
"Address": "http://gateway-web-public"
}
}
}
}
}
}

51
services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/appsettings.Docker.json

@ -0,0 +1,51 @@
{
"App": {
"SelfUrl": "https://administration-service",
"CorsOrigins": "https://gateway-web,gateway-web-public"
},
"AuthServer": {
"Authority": "http://app-authserver",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "WebGateway_Swagger",
"SwaggerClientSecret": "1q2w3e*"
},
"RemoteServices": {
"AbpIdentity": {
"BaseUrl": "http://identity-service",
"UseCurrentAccessToken": "false"
}
},
"IdentityClients": {
"Default": {
"GrantType": "client_credentials",
"ClientId": "EShopOnAbp_AdministrationService",
"ClientSecret": "1q2w3e*",
"Authority": "http://app-authserver",
"Scope": "IdentityService"
}
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ConnectionStrings": {
"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_AdministrationService",
"ExchangeName": "EShopOnAbp"
}
}
}

35
services/basket/src/EShopOnAbp.BasketService/appsettings.Docker.json

@ -0,0 +1,35 @@
{
"App": {
"SelfUrl": "https://basket-service",
"CorsOrigins": "https://gateway-web,gateway-web-public"
},
"AuthServer": {
"Authority": "http://app-authserver",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "WebGateway_Swagger",
"SwaggerClientSecret": "1q2w3e*"
},
"RemoteServices": {
"Catalog": {
"BaseUrl": "https://catalog-service",
"GrpcUrl": "http://catalog-service"
}
},
"ConnectionStrings": {
"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_BasketService",
"ExchangeName": "EShopOnAbp"
}
}
}

46
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://localhost:5000",
"Protocols": "Http1AndHttp2"
},
"Https": {
"Url": "https://localhost:44354",
"Protocols": "Http1AndHttp2"
},
"gRPC": {
"Url": "http://localhost:81",
"Protocols": "Http2"
}
}
}
}

65
services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/appsettings.Docker.json

@ -0,0 +1,65 @@
{
"App": {
"SelfUrl": "https://identity-service",
"CorsOrigins": "https://gateway-web,gateway-web-public"
},
"AuthServer": {
"Authority": "http://app-authserver",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "WebGateway_Swagger",
"SwaggerClientSecret": "1q2w3e*"
},
"ConnectionStrings": {
"IdentityService": "User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Identity;Pooling=false;",
"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_IdentityService",
"ExchangeName": "EShopOnAbp"
}
},
"IdentityServerClients": {
"Web": {
"RootUrl": "http://localhost:4200"
},
"PublicWeb": {
"RootUrl": "https://localhost:44335/"
},
"WebGateway": {
"RootUrl": "https://localhost:44372"
},
"PublicWebGateway": {
"RootUrl": "https://localhost:44373"
},
"AccountService": {
"RootUrl": "https://localhost:44330"
},
"IdentityService": {
"RootUrl": "https://localhost:44351"
},
"AdministrationService": {
"RootUrl": "https://localhost:44353"
},
"CatalogService": {
"RootUrl": "https://localhost:44354"
},
"BasketService": {
"RootUrl": "https://localhost:44355"
},
"OrderingService": {
"RootUrl": "https://localhost:44356"
},
"PaymentService": {
"RootUrl": "https://localhost:44357"
}
}
}

30
services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/appsettings.Docker.json

@ -0,0 +1,30 @@
{
"App": {
"SelfUrl": "https://ordering-service",
"CorsOrigins": "https://gateway-web,gateway-web-public"
},
"AuthServer": {
"Authority": "http://app-authserver",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "WebGateway_Swagger",
"SwaggerClientSecret": "1q2w3e*"
},
"ConnectionStrings": {
"OrderingService": "User ID=postgres;Password=myPassw0rd;Host=postgres-db;Port=5432;Database=EShopOnAbp_Ordering;Pooling=false",
"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_OrderingService",
"ExchangeName": "EShopOnAbp"
}
}
}
Loading…
Cancel
Save