Browse Source

Docker配置修改

pull/872/head
李宏 2 years ago
parent
commit
d78aeb83ae
  1. 2
      aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/appsettings.Development.json
  2. 2
      aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/appsettings.Development.json
  3. 2
      aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/appsettings.Development.json
  4. 2
      aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Dockerfile
  5. 3
      aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs
  6. 126
      docker-compose.agile.config.yml
  7. 138
      docker-compose.configuration.yml
  8. 111
      docker-compose.override.windows.yml
  9. 10
      docker-compose.override.yml
  10. 20
      docker-compose.yml
  11. 12
      gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/Ocelot/Multiplexer/AbpResponseMergeAggregator.cs
  12. 5
      gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/appsettings.Development.json

2
aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/appsettings.Development.json

@ -4,7 +4,7 @@
"env": "DEV",
"appId": "LINGYUN.Abp.TaskManagement",
"secret": "1q2w3E*",
"nodes": "http://127.0.0.1:15000",
"nodes": "http://127.0.0.1:5000",
"name": "LINGYUN.Abp.TaskManagement",
"tag": "LINGYUN.Abp.TaskManagement"
},

2
aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/appsettings.Development.json

@ -4,7 +4,7 @@
"env": "DEV",
"appId": "LINGYUN.Abp.WebhooksManagement",
"secret": "1q2w3E*",
"nodes": "http://127.0.0.1:15000",
"nodes": "http://127.0.0.1:5000",
"name": "LINGYUN.Abp.WebhooksManagement",
"tag": "LINGYUN.Abp.WebhooksManagement"
},

2
aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/appsettings.Development.json

@ -4,7 +4,7 @@
"env": "DEV",
"appId": "LINGYUN.Abp.Workflow",
"secret": "1q2w3E*",
"nodes": "http://127.0.0.1:15000",
"nodes": "http://127.0.0.1:5000",
"name": "LINGYUN.Abp.Workflow",
"tag": "LINGYUN.Abp.Workflow"
},

2
aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Dockerfile

@ -11,4 +11,4 @@ EXPOSE 80/tcp
VOLUME [ "./app/Logs" ]
VOLUME [ "./app/Modules" ]
ENTRYPOINT ["dotnet", "LY.MicroService.IdentityServer.HttpApi.Host.dll"]
ENTRYPOINT ["dotnet", "LY.MicroService.identityServer.HttpApi.Host.dll"]

3
aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs

@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging;
using Serilog;
using System;
using System.IO;
@ -20,6 +21,8 @@ public class Program
{
Console.Title = "IdentityServer.HttpApi.Host";
Log.Information("Starting IdentityServer.HttpApi.Host.");
IdentityModelEventSource.ShowPII = true;
var builder = WebApplication.CreateBuilder(args);
builder.Host.AddAppSettingsSecretsJson()

126
docker-compose.agile.config.yml

@ -1,102 +1,102 @@
version: '3.4'
services:
agile-config:
image: kklldog/agile_config:latest
sts-server:
environment:
- adminConsole=true
- db:provider=mysql
- db:conn=Server=127.0.0.1;Database=agile;User Id=root;Password=123456;Character Set=utf8mb4
ports:
- "5000:5000"
volumes:
- /etc/localtime:/etc/localtime
restart: always
identity-server-sts:
environment:
- AgileConfig__env=PROD
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.AuthServer
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://agile-config:5000
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=AuthServer
- AgileConfig__tag=AuthServer
depends_on:
- agile-config
identity-server-admin:
sts-api:
environment:
- AgileConfig__env=PROD
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.IdentityServer.Admin
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://agile-config:5000
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=IdentityServer.Admin
- AgileConfig__tag=IdentityServer.Admin
depends_on:
- agile-config
admin-service:
admin-api:
environment:
- AgileConfig__env=PROD
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.Backend.Admin
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://agile-config:5000
- AgileConfig__name=Backend.Admin
- AgileConfig__tag=Backend.Admin
depends_on:
- agile-config
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=BackendAdmin
- AgileConfig__tag=BackendAdmin
localization-service:
localization-api:
environment:
- AgileConfig__env=PROD
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.Localization
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://agile-config:5000
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=Localization
- AgileConfig__tag=Localization
depends_on:
- agile-config
platform-service:
platform-api:
environment:
- AgileConfig__env=PROD
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.Platform
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://agile-config:5000
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=Platform
- AgileConfig__tag=Platform
depends_on:
- agile-config
messages-service:
messages-api:
environment:
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.Message
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=Message
- AgileConfig__tag=Message
task-api:
environment:
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.Task
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=Task
- AgileConfig__tag=Task
webhook-api:
environment:
- AgileConfig__env=PROD
- AgileConfig__appId=LINGYUN.Abp.Messages
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.Webhooks
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://agile-config:5000
- AgileConfig__name=Messages
- AgileConfig__tag=Messages
depends_on:
- agile-config
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=Webhooks
- AgileConfig__tag=Webhooks
apigateway-admin-service:
workflow-api:
environment:
- AgileConfig__env=PROD
- AgileConfig__appId=LINGYUN.Abp.Apigateway.Admin
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Abp.Workflow
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://agile-config:5000
- AgileConfig__name=Apigateway.Admin
- AgileConfig__tag=Apigateway.Admin
depends_on:
- agile-config
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=Workflow
- AgileConfig__tag=Workflow
apigateway-host-service:
internal-apigateway:
environment:
- AgileConfig__env=PROD
- AgileConfig__appId=LINGYUN.Abp.Apigateway
- AgileConfig__IsEnabled=true
- AgileConfig__env=DEV
- AgileConfig__appId=LINGYUN.Internal.ApiGateway
- AgileConfig__secret=1q2w3E*
- AgileConfig__nodes=http://agile-config:5000
- AgileConfig__name=Apigateway
- AgileConfig__tag=Apigateway
depends_on:
- agile-config
- AgileConfig__nodes=http://docker.gzbit.cn:5000
- AgileConfig__name=ApiGateway
- AgileConfig__tag=ApiGateway

138
docker-compose.configuration.yml

@ -1,20 +1,25 @@
version: '3.4'
services:
admin-service:
sts-server:
environment:
- App__SelfUrl=http://127.0.0.1:44385/
- App__CorsOrigins=http://127.0.0.1:9527,http://127.0.0.1:9528,http://127.0.0.1:40000,http://127.0.0.1:30000
- App__TrackingEntitiesChanged=true
- ConnectionStrings__Default=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__Default=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
- ConnectionStrings__AbpIdentity=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
- ConnectionStrings__AbpIdentityServer=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
- ConnectionStrings__AbpAuditLogging=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpTenantManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpSettingManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpPermissionManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpFeatureManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- Certificates__CerPath=./idsrv4.pfx
- Certificates__Password=csfvw2-2r0ff41
- Encryption__PassPhrase=s46c5q55nxpeS8Ra
- Encryption__InitVector=s83ng0abvd02js84
- Encryption__Salt=sf&5)s3#
- CAP__EventBus__DefaultGroup=BackendAdmin
- CAP__EventBus__DefaultGroup=AuthServer
- CAP__EventBus__Version=v1
- CAP__EventBus__FailedRetryInterval=300
- CAP__EventBus__FailedRetryCount=10
@ -28,8 +33,13 @@ services:
- Redis__InstanceName=LINGYUN.Abp.Application
- AuthServer__Authority=http://127.0.0.1:44385/
- AuthServer__ApiName=lingyun-abp-application
- IdentityServer__Clients__AuthManagement__ClientId=auth-management
- IdentityServer__Clients__AuthManagement__RootUrl=http://127.0.0.1:9527/
- IdentityServer__Clients__AuthVueAdmin__ClientId=vue-admin-element
- IdentityServer__Clients__AuthApiGateway__ClientId=ApigatewayHostClient
- IdentityServer__Clients__AuthApiGatewayAdmin__ClientId=apigateway-admin-client
identity-server-admin:
sts-api:
environment:
- App__TrackingEntitiesChanged=true
- ConnectionStrings__Default=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
@ -58,7 +68,35 @@ services:
- AuthServer__Authority=http://127.0.0.1:44385/
- AuthServer__ApiName=lingyun-abp-application
localization-service:
admin-api:
environment:
- App__TrackingEntitiesChanged=true
- ConnectionStrings__Default=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpIdentity=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
- ConnectionStrings__AbpIdentityServer=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
- ConnectionStrings__AbpAuditLogging=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpTenantManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpSettingManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpPermissionManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- Encryption__PassPhrase=s46c5q55nxpeS8Ra
- Encryption__InitVector=s83ng0abvd02js84
- Encryption__Salt=sf&5)s3#
- CAP__EventBus__DefaultGroup=BackendAdmin
- CAP__EventBus__Version=v1
- CAP__EventBus__FailedRetryInterval=300
- CAP__EventBus__FailedRetryCount=10
- CAP__RabbitMQ__HostName=127.0.0.1
- CAP__RabbitMQ__Port=5672
- CAP__RabbitMQ__UserName=admin
- CAP__RabbitMQ__Password=123456
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application
- CAP__RabbitMQ__VirtualHost=/
- Redis__Configuration=127.0.0.1,defaultDatabase=10
- Redis__InstanceName=LINGYUN.Abp.Application
- AuthServer__Authority=http://127.0.0.1:44385/
- AuthServer__ApiName=lingyun-abp-application
localization-api:
environment:
- App__TrackingEntitiesChanged=true
- ConnectionStrings__Default=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
@ -85,7 +123,7 @@ services:
- AuthServer__Authority=http://127.0.0.1:44385/
- AuthServer__ApiName=lingyun-abp-application
platform-service:
platform-api:
environment:
- App__TrackingEntitiesChanged=true
- ConnectionStrings__Default=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
@ -122,7 +160,7 @@ services:
- AuthServer__Authority=http://127.0.0.1:44385/
- AuthServer__ApiName=lingyun-abp-application
messages-service:
messages-api:
environment:
- App__CorsOrigins=http://127.0.0.1:40000,http://127.0.0.1:30000
- App__TrackingEntitiesChanged=true
@ -152,25 +190,76 @@ services:
- Hangfire__Dashboard__WhiteList=127.0.0.1
- Notifications__WeChat__WeApp__DefaultWeAppState=formal
identity-server-sts:
task-api:
environment:
- App__SelfUrl=http://127.0.0.1:44385/
- App__CorsOrigins=http://127.0.0.1:9527,http://127.0.0.1:9528,http://127.0.0.1:40000,http://127.0.0.1:30000
- App__TrackingEntitiesChanged=true
- ConnectionStrings__Default=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
- ConnectionStrings__AbpIdentity=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
- ConnectionStrings__AbpIdentityServer=Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456
- ConnectionStrings__AbpAuditLogging=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpTenantManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpSettingManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpPermissionManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- ConnectionStrings__AbpFeatureManagement=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456
- Certificates__CerPath=./idsrv4.pfx
- Certificates__Password=csfvw2-2r0ff41
- ConnectionStrings__Default=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__TaskManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpFeatureManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpPermissionManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpLocalizationManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpSettingManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpSaas=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- Encryption__PassPhrase=s46c5q55nxpeS8Ra
- Encryption__InitVector=s83ng0abvd02js84
- Encryption__Salt=sf&5)s3#
- CAP__EventBus__DefaultGroup=AuthServer
- CAP__EventBus__DefaultGroup=TaskManagement
- CAP__EventBus__Version=v1
- CAP__EventBus__FailedRetryInterval=300
- CAP__EventBus__FailedRetryCount=10
- CAP__RabbitMQ__HostName=127.0.0.1
- CAP__RabbitMQ__Port=5672
- CAP__RabbitMQ__UserName=admin
- CAP__RabbitMQ__Password=123456
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application
- CAP__RabbitMQ__VirtualHost=/
- Redis__Configuration=127.0.0.1,defaultDatabase=10
- Redis__InstanceName=LINGYUN.Abp.Application
- AuthServer__Authority=http://127.0.0.1:44385/
- AuthServer__ApiName=lingyun-abp-application
webhook-api:
- App__TrackingEntitiesChanged=true
- ConnectionStrings__Default=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__WebhooksManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__TaskManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpSaas=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpFeatureManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpPermissionManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpSettingManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- Encryption__PassPhrase=s46c5q55nxpeS8Ra
- Encryption__InitVector=s83ng0abvd02js84
- Encryption__Salt=sf&5)s3#
- CAP__EventBus__DefaultGroup=WebhooksManagement
- CAP__EventBus__Version=v1
- CAP__EventBus__FailedRetryInterval=300
- CAP__EventBus__FailedRetryCount=10
- CAP__RabbitMQ__HostName=127.0.0.1
- CAP__RabbitMQ__Port=5672
- CAP__RabbitMQ__UserName=admin
- CAP__RabbitMQ__Password=123456
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application
- CAP__RabbitMQ__VirtualHost=/
- Redis__Configuration=127.0.0.1,defaultDatabase=10
- Redis__InstanceName=LINGYUN.Abp.Application
- AuthServer__Authority=http://127.0.0.1:44385/
- AuthServer__ApiName=lingyun-abp-application
workflow-api:
- App__TrackingEntitiesChanged=true
- ConnectionStrings__Default=Server=127.0.0.1;Database=Workflow;User Id=root;Password=123456,
- ConnectionStrings__Workflow=Server=127.0.0.1;Database=Workflow;User Id=root;Password=123456,
- ConnectionStrings__WorkflowManagement=Server=127.0.0.1;Database=Workflow;User Id=root;Password=123456,
- ConnectionStrings__AbpWorkflowCore=Server=127.0.0.1;Database=Workflow;User Id=root;Password=123456,
- ConnectionStrings__AbpFeatureManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpPermissionManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpLocalizationManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpSettingManagement=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- ConnectionStrings__AbpSaas=Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456,
- Encryption__PassPhrase=s46c5q55nxpeS8Ra
- Encryption__InitVector=s83ng0abvd02js84
- Encryption__Salt=sf&5)s3#
- CAP__EventBus__DefaultGroup=Workflow
- CAP__EventBus__Version=v1
- CAP__EventBus__FailedRetryInterval=300
- CAP__EventBus__FailedRetryCount=10
@ -184,13 +273,8 @@ services:
- Redis__InstanceName=LINGYUN.Abp.Application
- AuthServer__Authority=http://127.0.0.1:44385/
- AuthServer__ApiName=lingyun-abp-application
- IdentityServer__Clients__AuthManagement__ClientId=auth-management
- IdentityServer__Clients__AuthManagement__RootUrl=http://127.0.0.1:9527/
- IdentityServer__Clients__AuthVueAdmin__ClientId=vue-admin-element
- IdentityServer__Clients__AuthApiGateway__ClientId=ApigatewayHostClient
- IdentityServer__Clients__AuthApiGatewayAdmin__ClientId=apigateway-admin-client
internat-apigateway:
internal-apigateway:
environment:
- App__TrackingEntitiesChanged=true
- Encryption__PassPhrase=s46c5q55nxpeS8Ra

111
docker-compose.override.windows.yml

@ -1,79 +1,114 @@
version: '3.4'
services:
identity-server-sts:
sts-server:
build:
context: ./aspnet-core/services/Publish/identityserver
volumes:
- D:\Projects\Development\Abp\Application\logs\ids-sts:/app/Logs
restart: always
- D:\Project\Abp\logs\ids-sts:/app/Logs
- D:\Project\Abp\data\ids-sts\Modules:/app/Modules
networks:
- framework
identity-server-admin:
sts-api:
build:
context: ./aspnet-core/services/Publish/identityserver4-admin
volumes:
- D:\Projects\Development\Abp\Application\logs\ids-admin:/app/Logs
- D:\Project\Abp\logs\ids-admin:/app/Logs
- D:\Project\Abp\data\ids-admin\Modules:/app/Modules
depends_on:
- identity-server-sts
restart: always
- sts-server
networks:
- framework
admin-service:
admin-api:
build:
context: ./aspnet-core/services/Publish/admin
volumes:
- D:\Projects\Development\Abp\Application\logs\backend-admin:/app/Logs
- D:\Project\Abp\logs\backend-admin:/app/Logs
- D:\Project\Abp\data\backend-admin\Modules:/app/Modules
depends_on:
- identity-server-sts
restart: always
- sts-server
networks:
- framework
localization-service:
localization-api:
build:
context: ./aspnet-core/services/Publish/localization
volumes:
- D:\Projects\Development\Abp\Application\logs\localization:/app/Logs
restart: always
- D:\Project\Abp\logs\localization:/app/Logs
- D:\Project\Abp\data\localization\Modules:/app/Modules
depends_on:
- sts-server
networks:
- framework
platform-service:
platform-api:
build:
context: ./aspnet-core/services/Publish/platform
volumes:
- D:\Projects\Development\Abp\Application\logs\platform:/app/Logs
- D:\Projects\Development\Abp\Application\data\platform:/app/file-blob-storing
- D:\Project\Abp\logs\platform:/app/Logs
- D:\Project\Abp\data\platform\Modules:/app/Modules
- D:\Project\Abp\data\platform:/app/file-blob-storing
depends_on:
- identity-server-sts
restart: always
- sts-server
networks:
- framework
messages-service:
messages-api:
build:
context: ./aspnet-core/services/Publish/messages
volumes:
- D:\Projects\Development\Abp\Application\logs\messages:/app/Logs
- D:\Project\Abp\logs\messages:/app/Logs
- D:\Project\Abp\data\messages\Modules:/app/Modules
depends_on:
- identity-server-sts
restart: always
- sts-server
networks:
- framework
apigateway-admin-service:
task-api:
build:
context: ./aspnet-core/services/Publish/apigateway-admin
context: ./aspnet-core/services/Publish/task-management
volumes:
- D:\Projects\Development\Abp\Application\logs\apigateway-admin:/app/Logs
- D:\Project\Abp\logs\task-management:/app/Logs
- D:\Project\Abp\data\task-management\Modules:/app/Modules
depends_on:
- identity-server-sts
- admin-service
restart: always
- sts-server
networks:
- framework
apigateway-host-service:
webhook-api:
build:
context: ./aspnet-core/services/Publish/apigateway-host
context: ./aspnet-core/services/Publish/webhooks
volumes:
- D:\Projects\Development\Abp\Application\logs\apigateway-host:/app/Logs
- D:\Project\Abp\logs\webhooks:/app/Logs
- D:\Project\Abp\data\webhooks\Modules:/app/Modules
depends_on:
- identity-server-sts
- apigateway-admin-service
restart: always
- sts-server
networks:
- framework
volumes:
dbdata:
workflow-api:
build:
context: ./aspnet-core/services/Publish/workflow
volumes:
- D:\Project\Abp\logs\workflow:/app/Logs
- D:\Project\Abp\data\workflow\Modules:/app/Modules
depends_on:
- sts-server
networks:
- framework
internal-apigateway:
build:
context: ./aspnet-core/services/Publish/internal-apigateway
volumes:
- D:\Project\Abp\logs\internal-apigateway:/app/Logs
- D:\Project\Abp\data\internal-apigateway\Modules:/app/Modules
networks:
- framework
networks:
linyun-abp:
framework:
name: nt
external: true

10
docker-compose.override.yml

@ -7,7 +7,6 @@ services:
volumes:
- /var/opt/abp/logs/ids-sts:/app/Logs
- /var/opt/abp/data/ids-sts/Modules:/app/Modules
restart: always
networks:
- framework
@ -19,7 +18,6 @@ services:
- /var/opt/abp/data/ids-admin/Modules:/app/Modules
depends_on:
- sts-server
restart: always
networks:
- framework
@ -31,7 +29,6 @@ services:
- /var/opt/abp/data/backend-admin/Modules:/app/Modules
depends_on:
- sts-server
restart: always
networks:
- framework
@ -41,7 +38,6 @@ services:
volumes:
- /var/opt/abp/logs/localization:/app/Logs
- /var/opt/abp/data/localization/Modules:/app/Modules
restart: always
depends_on:
- sts-server
networks:
@ -56,7 +52,6 @@ services:
- /var/opt/abp/data/platform:/app/file-blob-storing
depends_on:
- sts-server
restart: always
networks:
- framework
@ -68,7 +63,6 @@ services:
- /var/opt/abp/data/messages/Modules:/app/Modules
depends_on:
- sts-server
restart: always
networks:
- framework
@ -80,7 +74,6 @@ services:
- /var/opt/abp/data/task-management/Modules:/app/Modules
depends_on:
- sts-server
restart: always
networks:
- framework
@ -92,7 +85,6 @@ services:
- /var/opt/abp/data/webhooks/Modules:/app/Modules
depends_on:
- sts-server
restart: always
networks:
- framework
@ -104,7 +96,6 @@ services:
- /var/opt/abp/data/workflow/Modules:/app/Modules
depends_on:
- sts-server
restart: always
networks:
- framework
@ -114,7 +105,6 @@ services:
volumes:
- /var/opt/abp/logs/internal-apigateway:/app/Logs
- /var/opt/abp/data/internal-apigateway/Modules:/app/Modules
restart: always
networks:
- framework

20
docker-compose.yml

@ -3,70 +3,70 @@ version: '3.4'
services:
admin-api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30010:80"
sts-api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30015:80"
localization-api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30030:80"
platform-api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30025:80"
messages-api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30020:80"
task-api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30040:80"
webhook-api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30045:80"
workflow-api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30050:80"
sts-server:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "44385:80"
internal-apigateway:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
ports:
- "30000:80"

12
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/Ocelot/Multiplexer/AbpResponseMergeAggregator.cs

@ -79,6 +79,8 @@ namespace Ocelot.Multiplexer
continue;
}
var content = await response.Content.ReadAsStringAsync();
try
{
var contentObject = JsonConvert.DeserializeObject(content);
if (responseObject == null)
{
@ -89,6 +91,16 @@ namespace Ocelot.Multiplexer
responseObject.Merge(contentObject, mergeSetting);
}
}
catch (System.Exception ex)
{
Logger.LogError(content);
return new DownstreamResponse(
null,
HttpStatusCode.InternalServerError,
new List<KeyValuePair<string, IEnumerable<string>>>(),
content);
}
}
if (responseObject == null)
{

5
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/appsettings.Development.json

@ -49,7 +49,10 @@
},
"AuthServer": {
"Authority": "http://127.0.0.1:44385/",
"ApiName": "lingyun-abp-application"
"ApiName": "lingyun-abp-application",
"SwaggerClientId": "ApigatewayHostClient",
"SwaggerClientSecret": "1q2w3e*",
"ApiSocpes": "lingyun-abp-application"
},
"Serilog": {
"MinimumLevel": {

Loading…
Cancel
Save