committed by
GitHub
98 changed files with 1628 additions and 1281 deletions
@ -1,16 +1,17 @@ |
|||||
version: '3.4' |
version: '3.4' |
||||
|
|
||||
services: |
services: |
||||
vue-vben-client: |
ui: |
||||
build: |
build: |
||||
context: . |
context: . |
||||
restart: always |
restart: always |
||||
|
environment: |
||||
|
- VITE_GLOB_AUTHORITY=http://127.0.0.1:44385 |
||||
ports: |
ports: |
||||
- "40080:80" |
- "40080:80" |
||||
networks: |
networks: |
||||
- framework |
- abp-next-admin |
||||
|
|
||||
networks: |
networks: |
||||
framework: |
abp-next-admin: |
||||
external: |
driver: bridge |
||||
name: ly_app_net |
|
||||
@ -1,42 +1,45 @@ |
|||||
using LINGYUN.Abp.TextTemplating; |
using LINGYUN.Abp.Auditing; |
||||
|
using LINGYUN.Abp.CachingManagement; |
||||
|
using LINGYUN.Abp.Identity; |
||||
|
using LINGYUN.Abp.IdentityServer; |
||||
|
using LINGYUN.Abp.LocalizationManagement; |
||||
|
using LINGYUN.Abp.MessageService; |
||||
|
using LINGYUN.Abp.Notifications; |
||||
|
using LINGYUN.Abp.OpenIddict; |
||||
|
using LINGYUN.Abp.OssManagement; |
||||
|
using LINGYUN.Abp.SettingManagement; |
||||
|
using LINGYUN.Abp.TaskManagement; |
||||
|
using LINGYUN.Abp.TextTemplating; |
||||
|
using LINGYUN.Abp.WebhooksManagement; |
||||
|
using LINGYUN.Platform; |
||||
using LY.MicroService.BackendAdmin.EntityFrameworkCore; |
using LY.MicroService.BackendAdmin.EntityFrameworkCore; |
||||
using Volo.Abp.Authorization.Permissions; |
|
||||
using Volo.Abp.Autofac; |
using Volo.Abp.Autofac; |
||||
using Volo.Abp.FeatureManagement; |
using Volo.Abp.FeatureManagement; |
||||
using Volo.Abp.Features; |
|
||||
using Volo.Abp.Modularity; |
using Volo.Abp.Modularity; |
||||
using Volo.Abp.PermissionManagement; |
using Volo.Abp.PermissionManagement; |
||||
using Volo.Abp.SettingManagement; |
|
||||
|
|
||||
namespace LY.MicroService.BackendAdmin.DbMigrator; |
namespace LY.MicroService.BackendAdmin.DbMigrator; |
||||
|
|
||||
[DependsOn( |
[DependsOn( |
||||
typeof(BackendAdminMigrationsEntityFrameworkCoreModule), |
typeof(BackendAdminMigrationsEntityFrameworkCoreModule), |
||||
|
typeof(AbpFeatureManagementApplicationContractsModule), |
||||
|
typeof(AbpSettingManagementApplicationContractsModule), |
||||
|
typeof(AbpPermissionManagementApplicationContractsModule), |
||||
|
typeof(AbpLocalizationManagementApplicationContractsModule), |
||||
|
typeof(AbpCachingManagementApplicationContractsModule), |
||||
|
typeof(AbpAuditingApplicationContractsModule), |
||||
|
typeof(AbpTextTemplatingApplicationContractsModule), |
||||
|
typeof(AbpIdentityApplicationContractsModule), |
||||
|
typeof(AbpIdentityServerApplicationContractsModule), |
||||
|
typeof(AbpOpenIddictApplicationContractsModule), |
||||
|
typeof(PlatformApplicationContractModule), |
||||
|
typeof(AbpOssManagementApplicationContractsModule), |
||||
|
typeof(AbpNotificationsApplicationContractsModule), |
||||
|
typeof(AbpMessageServiceApplicationContractsModule), |
||||
|
typeof(TaskManagementApplicationContractsModule), |
||||
|
typeof(WebhooksManagementApplicationContractsModule), |
||||
typeof(AbpAutofacModule) |
typeof(AbpAutofacModule) |
||||
)] |
)] |
||||
public partial class BackendAdminDbMigratorModule : AbpModule |
public partial class BackendAdminDbMigratorModule : AbpModule |
||||
{ |
{ |
||||
public override void ConfigureServices(ServiceConfigurationContext context) |
|
||||
{ |
|
||||
Configure<SettingManagementOptions>(options => |
|
||||
{ |
|
||||
options.IsDynamicSettingStoreEnabled = true; |
|
||||
options.SaveStaticSettingsToDatabase = true; |
|
||||
}); |
|
||||
Configure<FeatureManagementOptions>(options => |
|
||||
{ |
|
||||
options.IsDynamicFeatureStoreEnabled = true; |
|
||||
options.SaveStaticFeaturesToDatabase = true; |
|
||||
}); |
|
||||
Configure<PermissionManagementOptions>(options => |
|
||||
{ |
|
||||
options.IsDynamicPermissionStoreEnabled = true; |
|
||||
options.SaveStaticPermissionsToDatabase = true; |
|
||||
}); |
|
||||
Configure<AbpTextTemplatingCachingOptions>(options => |
|
||||
{ |
|
||||
options.IsDynamicTemplateDefinitionStoreEnabled = true; |
|
||||
options.SaveStaticTemplateDefinitionToDatabase = true; |
|
||||
}); |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,36 +1,13 @@ |
|||||
using LINGYUN.Abp.UI.Navigation.VueVbenAdmin; |
using LY.MicroService.Platform.EntityFrameworkCore; |
||||
using LY.MicroService.Platform.EntityFrameworkCore; |
|
||||
using Volo.Abp.Autofac; |
using Volo.Abp.Autofac; |
||||
using Volo.Abp.FeatureManagement; |
|
||||
using Volo.Abp.Modularity; |
using Volo.Abp.Modularity; |
||||
using Volo.Abp.PermissionManagement; |
|
||||
using Volo.Abp.SettingManagement; |
|
||||
|
|
||||
namespace LY.MicroService.Platform.DbMigrator; |
namespace LY.MicroService.Platform.DbMigrator; |
||||
|
|
||||
[DependsOn( |
[DependsOn( |
||||
typeof(PlatformMigrationsEntityFrameworkCoreModule), |
typeof(PlatformMigrationsEntityFrameworkCoreModule), |
||||
typeof(AbpUINavigationVueVbenAdminModule), |
|
||||
typeof(AbpAutofacModule) |
typeof(AbpAutofacModule) |
||||
)] |
)] |
||||
public partial class PlatformDbMigratorModule : AbpModule |
public partial class PlatformDbMigratorModule : AbpModule |
||||
{ |
{ |
||||
public override void ConfigureServices(ServiceConfigurationContext context) |
|
||||
{ |
|
||||
Configure<SettingManagementOptions>(options => |
|
||||
{ |
|
||||
options.IsDynamicSettingStoreEnabled = true; |
|
||||
options.SaveStaticSettingsToDatabase = true; |
|
||||
}); |
|
||||
Configure<FeatureManagementOptions>(options => |
|
||||
{ |
|
||||
options.IsDynamicFeatureStoreEnabled = true; |
|
||||
options.SaveStaticFeaturesToDatabase = true; |
|
||||
}); |
|
||||
Configure<PermissionManagementOptions>(options => |
|
||||
{ |
|
||||
options.IsDynamicPermissionStoreEnabled = true; |
|
||||
options.SaveStaticPermissionsToDatabase = true; |
|
||||
}); |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,221 +1,58 @@ |
|||||
using LINGYUN.Abp.Data.DbMigrator; |
using LINGYUN.Abp.Data.DbMigrator; |
||||
using LINGYUN.Abp.Saas.Tenants; |
using LINGYUN.Abp.Saas.Tenants; |
||||
using Microsoft.EntityFrameworkCore; |
|
||||
using Microsoft.Extensions.Logging; |
using Microsoft.Extensions.Logging; |
||||
using Microsoft.Extensions.Logging.Abstractions; |
|
||||
using System; |
using System; |
||||
using System.Collections.Generic; |
|
||||
using System.Diagnostics; |
|
||||
using System.IO; |
|
||||
using System.Linq; |
using System.Linq; |
||||
using System.Runtime.InteropServices; |
|
||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Volo.Abp.Data; |
using Volo.Abp.Data; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
|
using Volo.Abp.DistributedLocking; |
||||
|
using Volo.Abp.EventBus.Distributed; |
||||
using Volo.Abp.MultiTenancy; |
using Volo.Abp.MultiTenancy; |
||||
|
using Volo.Abp.Uow; |
||||
|
|
||||
namespace LY.MicroService.TaskManagement.EntityFrameworkCore; |
namespace LY.MicroService.TaskManagement.EntityFrameworkCore; |
||||
|
|
||||
public class TaskManagementDbMigrationService : ITransientDependency |
public class TaskManagementDbMigrationService : EfCoreRuntimeDbMigratorBase<TaskManagementMigrationsDbContext>, ITransientDependency |
||||
{ |
{ |
||||
public ILogger<TaskManagementDbMigrationService> Logger { get; set; } |
protected IDataSeeder DataSeeder { get; } |
||||
|
protected IDbSchemaMigrator DbSchemaMigrator { get; } |
||||
private readonly IDataSeeder _dataSeeder; |
protected ITenantRepository TenantRepository { get; } |
||||
private readonly IDbSchemaMigrator _dbSchemaMigrator; |
|
||||
private readonly ITenantRepository _tenantRepository; |
|
||||
private readonly ICurrentTenant _currentTenant; |
|
||||
|
|
||||
public TaskManagementDbMigrationService( |
public TaskManagementDbMigrationService( |
||||
IDataSeeder dataSeeder, |
IDataSeeder dataSeeder, |
||||
IDbSchemaMigrator dbSchemaMigrator, |
IDbSchemaMigrator dbSchemaMigrator, |
||||
ITenantRepository tenantRepository, |
ITenantRepository tenantRepository, |
||||
ICurrentTenant currentTenant) |
ICurrentTenant currentTenant, |
||||
{ |
IUnitOfWorkManager unitOfWorkManager, |
||||
_dataSeeder = dataSeeder; |
IServiceProvider serviceProvider, |
||||
_dbSchemaMigrator = dbSchemaMigrator; |
IAbpDistributedLock abpDistributedLock, |
||||
_tenantRepository = tenantRepository; |
IDistributedEventBus distributedEventBus, |
||||
_currentTenant = currentTenant; |
ILoggerFactory loggerFactory) |
||||
|
: base( |
||||
Logger = NullLogger<TaskManagementDbMigrationService>.Instance; |
ConnectionStringNameAttribute.GetConnStringName<TaskManagementMigrationsDbContext>(), |
||||
} |
unitOfWorkManager, serviceProvider, currentTenant, abpDistributedLock, distributedEventBus, loggerFactory) |
||||
|
|
||||
public async Task MigrateAsync() |
|
||||
{ |
|
||||
var initialMigrationAdded = AddInitialMigrationIfNotExist(); |
|
||||
|
|
||||
if (initialMigrationAdded) |
|
||||
{ |
|
||||
return; |
|
||||
} |
|
||||
|
|
||||
Logger.LogInformation("Started database migrations..."); |
|
||||
|
|
||||
await MigrateDatabaseSchemaAsync(); |
|
||||
await SeedDataAsync(); |
|
||||
|
|
||||
Logger.LogInformation($"Successfully completed host database migrations."); |
|
||||
|
|
||||
var tenants = await _tenantRepository.GetListAsync(includeDetails: true); |
|
||||
|
|
||||
var migratedDatabaseSchemas = new HashSet<string>(); |
|
||||
foreach (var tenant in tenants) |
|
||||
{ |
|
||||
using (_currentTenant.Change(tenant.Id)) |
|
||||
{ |
|
||||
if (tenant.ConnectionStrings.Any()) |
|
||||
{ |
|
||||
var tenantConnectionStrings = tenant.ConnectionStrings |
|
||||
.Select(x => x.Value) |
|
||||
.ToList(); |
|
||||
|
|
||||
if (!migratedDatabaseSchemas.IsSupersetOf(tenantConnectionStrings)) |
|
||||
{ |
|
||||
await MigrateDatabaseSchemaAsync(tenant); |
|
||||
|
|
||||
migratedDatabaseSchemas.AddIfNotContains(tenantConnectionStrings); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
await SeedDataAsync(tenant); |
|
||||
} |
|
||||
|
|
||||
Logger.LogInformation($"Successfully completed {tenant.Name} tenant database migrations."); |
|
||||
} |
|
||||
|
|
||||
Logger.LogInformation("Successfully completed all database migrations."); |
|
||||
Logger.LogInformation("You can safely end this process..."); |
|
||||
} |
|
||||
|
|
||||
private async Task MigrateDatabaseSchemaAsync(Tenant tenant = null) |
|
||||
{ |
|
||||
Logger.LogInformation($"Migrating schema for {(tenant == null ? "host" : tenant.Name + " tenant")} database..."); |
|
||||
// 迁移租户数据
|
|
||||
await _dbSchemaMigrator.MigrateAsync<TaskManagementMigrationsDbContext>( |
|
||||
(connectionString, builder) => |
|
||||
{ |
|
||||
builder.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString)); |
|
||||
|
|
||||
return new TaskManagementMigrationsDbContext(builder.Options); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
private async Task SeedDataAsync(Tenant tenant = null) |
|
||||
{ |
|
||||
Logger.LogInformation($"Executing {(tenant == null ? "host" : tenant.Name + " tenant")} database seed..."); |
|
||||
|
|
||||
await _dataSeeder.SeedAsync(tenant?.Id); |
|
||||
} |
|
||||
|
|
||||
private bool AddInitialMigrationIfNotExist() |
|
||||
{ |
|
||||
try |
|
||||
{ |
|
||||
if (!DbMigrationsProjectExists()) |
|
||||
{ |
|
||||
return false; |
|
||||
} |
|
||||
} |
|
||||
catch (Exception) |
|
||||
{ |
|
||||
return false; |
|
||||
} |
|
||||
|
|
||||
try |
|
||||
{ |
|
||||
if (!MigrationsFolderExists()) |
|
||||
{ |
|
||||
AddInitialMigration(); |
|
||||
return true; |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
return false; |
|
||||
} |
|
||||
} |
|
||||
catch (Exception e) |
|
||||
{ |
|
||||
Logger.LogWarning("Couldn't determinate if any migrations exist : " + e.Message); |
|
||||
return false; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
private bool DbMigrationsProjectExists() |
|
||||
{ |
{ |
||||
return Directory.Exists(GetEntityFrameworkCoreProjectFolderPath()); |
DataSeeder = dataSeeder; |
||||
} |
DbSchemaMigrator = dbSchemaMigrator; |
||||
|
TenantRepository = tenantRepository; |
||||
private bool MigrationsFolderExists() |
|
||||
{ |
|
||||
var dbMigrationsProjectFolder = GetEntityFrameworkCoreProjectFolderPath(); |
|
||||
|
|
||||
return Directory.Exists(Path.Combine(dbMigrationsProjectFolder, "Migrations")); |
|
||||
} |
|
||||
|
|
||||
private void AddInitialMigration() |
|
||||
{ |
|
||||
Logger.LogInformation("Creating initial migration..."); |
|
||||
|
|
||||
string argumentPrefix; |
|
||||
string fileName; |
|
||||
|
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) |
|
||||
{ |
|
||||
argumentPrefix = "-c"; |
|
||||
fileName = "/bin/bash"; |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
argumentPrefix = "/C"; |
|
||||
fileName = "cmd.exe"; |
|
||||
} |
|
||||
|
|
||||
var procStartInfo = new ProcessStartInfo(fileName, |
|
||||
$"{argumentPrefix} \"abp create-migration-and-run-migrator \"{GetEntityFrameworkCoreProjectFolderPath()}\" --nolayers\"" |
|
||||
); |
|
||||
|
|
||||
try |
|
||||
{ |
|
||||
Process.Start(procStartInfo); |
|
||||
} |
|
||||
catch (Exception) |
|
||||
{ |
|
||||
throw new Exception("Couldn't run ABP CLI..."); |
|
||||
} |
|
||||
} |
} |
||||
|
|
||||
private string GetEntityFrameworkCoreProjectFolderPath() |
protected async override Task LockAndApplyDatabaseMigrationsAsync() |
||||
{ |
{ |
||||
var slnDirectoryPath = GetSolutionDirectoryPath(); |
await base.LockAndApplyDatabaseMigrationsAsync(); |
||||
|
|
||||
if (slnDirectoryPath == null) |
var tenants = await TenantRepository.GetListAsync(); |
||||
|
foreach (var tenant in tenants.Where(x => x.IsActive)) |
||||
{ |
{ |
||||
throw new Exception("Solution folder not found!"); |
await LockAndApplyDatabaseWithTenantMigrationsAsync(tenant.Id); |
||||
} |
} |
||||
|
|
||||
return Path.Combine(slnDirectoryPath, "LY.MicroService.TaskManagement.DbMigrator"); |
|
||||
} |
} |
||||
|
|
||||
private string GetSolutionDirectoryPath() |
protected async override Task SeedAsync() |
||||
{ |
{ |
||||
var currentDirectory = new DirectoryInfo(Directory.GetCurrentDirectory()); |
Logger.LogInformation($"Executing {(!CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
||||
|
|
||||
while (Directory.GetParent(currentDirectory.FullName) != null) |
|
||||
{ |
|
||||
currentDirectory = Directory.GetParent(currentDirectory.FullName); |
|
||||
|
|
||||
if (Directory.GetFiles(currentDirectory!.FullName).FirstOrDefault(f => f.EndsWith(".sln")) != null) |
|
||||
{ |
|
||||
return currentDirectory.FullName; |
|
||||
} |
|
||||
|
|
||||
// parent host
|
|
||||
currentDirectory = Directory.GetParent(currentDirectory.FullName); |
|
||||
if (Directory.GetFiles(currentDirectory!.FullName).FirstOrDefault(f => f.EndsWith(".sln")) != null) |
|
||||
{ |
|
||||
return currentDirectory.FullName; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
return null; |
await DataSeeder.SeedAsync(CurrentTenant.Id); |
||||
} |
} |
||||
} |
} |
||||
@ -1,221 +1,58 @@ |
|||||
using LINGYUN.Abp.Data.DbMigrator; |
using LINGYUN.Abp.Data.DbMigrator; |
||||
using LINGYUN.Abp.Saas.Tenants; |
using LINGYUN.Abp.Saas.Tenants; |
||||
using Microsoft.EntityFrameworkCore; |
|
||||
using Microsoft.Extensions.Logging; |
using Microsoft.Extensions.Logging; |
||||
using Microsoft.Extensions.Logging.Abstractions; |
|
||||
using System; |
using System; |
||||
using System.Collections.Generic; |
|
||||
using System.Diagnostics; |
|
||||
using System.IO; |
|
||||
using System.Linq; |
using System.Linq; |
||||
using System.Runtime.InteropServices; |
|
||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Volo.Abp.Data; |
using Volo.Abp.Data; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
|
using Volo.Abp.DistributedLocking; |
||||
|
using Volo.Abp.EventBus.Distributed; |
||||
using Volo.Abp.MultiTenancy; |
using Volo.Abp.MultiTenancy; |
||||
|
using Volo.Abp.Uow; |
||||
|
|
||||
namespace LY.MicroService.WebhooksManagement.EntityFrameworkCore; |
namespace LY.MicroService.WebhooksManagement.EntityFrameworkCore; |
||||
|
|
||||
public class WebhooksManagementDbMigrationService : ITransientDependency |
public class WebhooksManagementDbMigrationService : EfCoreRuntimeDbMigratorBase<WebhooksManagementMigrationsDbContext>, ITransientDependency |
||||
{ |
{ |
||||
public ILogger<WebhooksManagementDbMigrationService> Logger { get; set; } |
protected IDataSeeder DataSeeder { get; } |
||||
|
protected IDbSchemaMigrator DbSchemaMigrator { get; } |
||||
private readonly IDataSeeder _dataSeeder; |
protected ITenantRepository TenantRepository { get; } |
||||
private readonly IDbSchemaMigrator _dbSchemaMigrator; |
|
||||
private readonly ITenantRepository _tenantRepository; |
|
||||
private readonly ICurrentTenant _currentTenant; |
|
||||
|
|
||||
public WebhooksManagementDbMigrationService( |
public WebhooksManagementDbMigrationService( |
||||
IDataSeeder dataSeeder, |
IDataSeeder dataSeeder, |
||||
IDbSchemaMigrator dbSchemaMigrator, |
IDbSchemaMigrator dbSchemaMigrator, |
||||
ITenantRepository tenantRepository, |
ITenantRepository tenantRepository, |
||||
ICurrentTenant currentTenant) |
ICurrentTenant currentTenant, |
||||
{ |
IUnitOfWorkManager unitOfWorkManager, |
||||
_dataSeeder = dataSeeder; |
IServiceProvider serviceProvider, |
||||
_dbSchemaMigrator = dbSchemaMigrator; |
IAbpDistributedLock abpDistributedLock, |
||||
_tenantRepository = tenantRepository; |
IDistributedEventBus distributedEventBus, |
||||
_currentTenant = currentTenant; |
ILoggerFactory loggerFactory) |
||||
|
: base( |
||||
Logger = NullLogger<WebhooksManagementDbMigrationService>.Instance; |
ConnectionStringNameAttribute.GetConnStringName<WebhooksManagementMigrationsDbContext>(), |
||||
} |
unitOfWorkManager, serviceProvider, currentTenant, abpDistributedLock, distributedEventBus, loggerFactory) |
||||
|
|
||||
public async Task MigrateAsync() |
|
||||
{ |
|
||||
var initialMigrationAdded = AddInitialMigrationIfNotExist(); |
|
||||
|
|
||||
if (initialMigrationAdded) |
|
||||
{ |
|
||||
return; |
|
||||
} |
|
||||
|
|
||||
Logger.LogInformation("Started database migrations..."); |
|
||||
|
|
||||
await MigrateDatabaseSchemaAsync(); |
|
||||
await SeedDataAsync(); |
|
||||
|
|
||||
Logger.LogInformation($"Successfully completed host database migrations."); |
|
||||
|
|
||||
var tenants = await _tenantRepository.GetListAsync(includeDetails: true); |
|
||||
|
|
||||
var migratedDatabaseSchemas = new HashSet<string>(); |
|
||||
foreach (var tenant in tenants) |
|
||||
{ |
|
||||
using (_currentTenant.Change(tenant.Id)) |
|
||||
{ |
|
||||
if (tenant.ConnectionStrings.Any()) |
|
||||
{ |
|
||||
var tenantConnectionStrings = tenant.ConnectionStrings |
|
||||
.Select(x => x.Value) |
|
||||
.ToList(); |
|
||||
|
|
||||
if (!migratedDatabaseSchemas.IsSupersetOf(tenantConnectionStrings)) |
|
||||
{ |
|
||||
await MigrateDatabaseSchemaAsync(tenant); |
|
||||
|
|
||||
migratedDatabaseSchemas.AddIfNotContains(tenantConnectionStrings); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
await SeedDataAsync(tenant); |
|
||||
} |
|
||||
|
|
||||
Logger.LogInformation($"Successfully completed {tenant.Name} tenant database migrations."); |
|
||||
} |
|
||||
|
|
||||
Logger.LogInformation("Successfully completed all database migrations."); |
|
||||
Logger.LogInformation("You can safely end this process..."); |
|
||||
} |
|
||||
|
|
||||
private async Task MigrateDatabaseSchemaAsync(Tenant tenant = null) |
|
||||
{ |
|
||||
Logger.LogInformation($"Migrating schema for {(tenant == null ? "host" : tenant.Name + " tenant")} database..."); |
|
||||
// 迁移租户数据
|
|
||||
await _dbSchemaMigrator.MigrateAsync<WebhooksManagementMigrationsDbContext>( |
|
||||
(connectionString, builder) => |
|
||||
{ |
|
||||
builder.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString)); |
|
||||
|
|
||||
return new WebhooksManagementMigrationsDbContext(builder.Options); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
private async Task SeedDataAsync(Tenant tenant = null) |
|
||||
{ |
|
||||
Logger.LogInformation($"Executing {(tenant == null ? "host" : tenant.Name + " tenant")} database seed..."); |
|
||||
|
|
||||
await _dataSeeder.SeedAsync(tenant?.Id); |
|
||||
} |
|
||||
|
|
||||
private bool AddInitialMigrationIfNotExist() |
|
||||
{ |
|
||||
try |
|
||||
{ |
|
||||
if (!DbMigrationsProjectExists()) |
|
||||
{ |
|
||||
return false; |
|
||||
} |
|
||||
} |
|
||||
catch (Exception) |
|
||||
{ |
|
||||
return false; |
|
||||
} |
|
||||
|
|
||||
try |
|
||||
{ |
|
||||
if (!MigrationsFolderExists()) |
|
||||
{ |
|
||||
AddInitialMigration(); |
|
||||
return true; |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
return false; |
|
||||
} |
|
||||
} |
|
||||
catch (Exception e) |
|
||||
{ |
|
||||
Logger.LogWarning("Couldn't determinate if any migrations exist : " + e.Message); |
|
||||
return false; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
private bool DbMigrationsProjectExists() |
|
||||
{ |
{ |
||||
return Directory.Exists(GetEntityFrameworkCoreProjectFolderPath()); |
DataSeeder = dataSeeder; |
||||
} |
DbSchemaMigrator = dbSchemaMigrator; |
||||
|
TenantRepository = tenantRepository; |
||||
private bool MigrationsFolderExists() |
|
||||
{ |
|
||||
var dbMigrationsProjectFolder = GetEntityFrameworkCoreProjectFolderPath(); |
|
||||
|
|
||||
return Directory.Exists(Path.Combine(dbMigrationsProjectFolder, "Migrations")); |
|
||||
} |
|
||||
|
|
||||
private void AddInitialMigration() |
|
||||
{ |
|
||||
Logger.LogInformation("Creating initial migration..."); |
|
||||
|
|
||||
string argumentPrefix; |
|
||||
string fileName; |
|
||||
|
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) |
|
||||
{ |
|
||||
argumentPrefix = "-c"; |
|
||||
fileName = "/bin/bash"; |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
argumentPrefix = "/C"; |
|
||||
fileName = "cmd.exe"; |
|
||||
} |
|
||||
|
|
||||
var procStartInfo = new ProcessStartInfo(fileName, |
|
||||
$"{argumentPrefix} \"abp create-migration-and-run-migrator \"{GetEntityFrameworkCoreProjectFolderPath()}\" --nolayers\"" |
|
||||
); |
|
||||
|
|
||||
try |
|
||||
{ |
|
||||
Process.Start(procStartInfo); |
|
||||
} |
|
||||
catch (Exception) |
|
||||
{ |
|
||||
throw new Exception("Couldn't run ABP CLI..."); |
|
||||
} |
|
||||
} |
} |
||||
|
|
||||
private string GetEntityFrameworkCoreProjectFolderPath() |
protected async override Task LockAndApplyDatabaseMigrationsAsync() |
||||
{ |
{ |
||||
var slnDirectoryPath = GetSolutionDirectoryPath(); |
await base.LockAndApplyDatabaseMigrationsAsync(); |
||||
|
|
||||
if (slnDirectoryPath == null) |
var tenants = await TenantRepository.GetListAsync(); |
||||
|
foreach (var tenant in tenants.Where(x => x.IsActive)) |
||||
{ |
{ |
||||
throw new Exception("Solution folder not found!"); |
await LockAndApplyDatabaseWithTenantMigrationsAsync(tenant.Id); |
||||
} |
} |
||||
|
|
||||
return Path.Combine(slnDirectoryPath, "LY.MicroService.WebhooksManagement.DbMigrator"); |
|
||||
} |
} |
||||
|
|
||||
private string GetSolutionDirectoryPath() |
protected async override Task SeedAsync() |
||||
{ |
{ |
||||
var currentDirectory = new DirectoryInfo(Directory.GetCurrentDirectory()); |
Logger.LogInformation($"Executing {(!CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
||||
|
|
||||
while (Directory.GetParent(currentDirectory.FullName) != null) |
|
||||
{ |
|
||||
currentDirectory = Directory.GetParent(currentDirectory.FullName); |
|
||||
|
|
||||
if (Directory.GetFiles(currentDirectory!.FullName).FirstOrDefault(f => f.EndsWith(".sln")) != null) |
|
||||
{ |
|
||||
return currentDirectory.FullName; |
|
||||
} |
|
||||
|
|
||||
// parent host
|
|
||||
currentDirectory = Directory.GetParent(currentDirectory.FullName); |
|
||||
if (Directory.GetFiles(currentDirectory!.FullName).FirstOrDefault(f => f.EndsWith(".sln")) != null) |
|
||||
{ |
|
||||
return currentDirectory.FullName; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
return null; |
await DataSeeder.SeedAsync(CurrentTenant.Id); |
||||
} |
} |
||||
} |
} |
||||
@ -0,0 +1,94 @@ |
|||||
|
using LINGYUN.Abp.Webhooks; |
||||
|
using Microsoft.Extensions.DependencyInjection; |
||||
|
using Microsoft.Extensions.Hosting; |
||||
|
using Microsoft.Extensions.Logging; |
||||
|
using Microsoft.Extensions.Options; |
||||
|
using System; |
||||
|
using System.Threading; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.DependencyInjection; |
||||
|
using Volo.Abp.Threading; |
||||
|
using Volo.Abp.Uow; |
||||
|
|
||||
|
namespace LINGYUN.Abp.WebhooksManagement; |
||||
|
public class WebhookDefinitionInitializer : ITransientDependency |
||||
|
{ |
||||
|
protected IRootServiceProvider RootServiceProvider { get; } |
||||
|
protected ICancellationTokenProvider CancellationTokenProvider { get; } |
||||
|
protected WebhooksManagementOptions WebhooksManagementOptions { get; } |
||||
|
public WebhookDefinitionInitializer( |
||||
|
IRootServiceProvider rootServiceProvider, |
||||
|
ICancellationTokenProvider cancellationTokenProvider, |
||||
|
IOptions<WebhooksManagementOptions> webhooksManagementOptions) |
||||
|
{ |
||||
|
RootServiceProvider = rootServiceProvider; |
||||
|
CancellationTokenProvider = cancellationTokenProvider; |
||||
|
WebhooksManagementOptions = webhooksManagementOptions.Value; |
||||
|
} |
||||
|
|
||||
|
[UnitOfWork] |
||||
|
public async virtual Task InitializeDynamicWebhooks(CancellationToken cancellationToken) |
||||
|
{ |
||||
|
if (!WebhooksManagementOptions.SaveStaticWebhooksToDatabase && !WebhooksManagementOptions.IsDynamicWebhookStoreEnabled) |
||||
|
{ |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
using var scope = RootServiceProvider.CreateScope(); |
||||
|
var applicationLifetime = scope.ServiceProvider.GetService<IHostApplicationLifetime>(); |
||||
|
var token = applicationLifetime?.ApplicationStopping ?? cancellationToken; |
||||
|
try |
||||
|
{ |
||||
|
using (CancellationTokenProvider.Use(cancellationToken)) |
||||
|
{ |
||||
|
if (CancellationTokenProvider.Token.IsCancellationRequested) |
||||
|
{ |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
await SaveStaticNotificationsToDatabaseAsync(scope); |
||||
|
|
||||
|
if (CancellationTokenProvider.Token.IsCancellationRequested) |
||||
|
{ |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
await PreCacheDynamicNotificationsAsync(scope); |
||||
|
} |
||||
|
} |
||||
|
catch (OperationCanceledException) |
||||
|
{ |
||||
|
// ignore
|
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
scope.ServiceProvider |
||||
|
.GetService<ILogger<WebhookDefinitionInitializer>>()? |
||||
|
.LogException(ex); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private async Task SaveStaticNotificationsToDatabaseAsync(IServiceScope serviceScope) |
||||
|
{ |
||||
|
if (!WebhooksManagementOptions.SaveStaticWebhooksToDatabase) |
||||
|
{ |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
var saver = serviceScope.ServiceProvider.GetRequiredService<IStaticWebhookSaver>(); |
||||
|
|
||||
|
await saver.SaveAsync(); |
||||
|
} |
||||
|
|
||||
|
private async Task PreCacheDynamicNotificationsAsync(IServiceScope serviceScope) |
||||
|
{ |
||||
|
if (!WebhooksManagementOptions.IsDynamicWebhookStoreEnabled) |
||||
|
{ |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
var store = serviceScope.ServiceProvider.GetRequiredService<IDynamicWebhookDefinitionStore>(); |
||||
|
|
||||
|
await store.GetGroupsAsync(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 |
||||
|
LABEL maintainer="colin.in@foxmail.com" |
||||
|
WORKDIR /app |
||||
|
|
||||
|
COPY . /app |
||||
|
|
||||
|
ENV TZ=Asia/Shanghai |
||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone |
||||
|
|
||||
|
EXPOSE 80/tcp |
||||
|
VOLUME [ "./app/Logs" ] |
||||
|
VOLUME [ "./app/Modules" ] |
||||
|
|
||||
|
ENTRYPOINT ["dotnet", "LINGYUN.MicroService.Internal.ApiGateway.dll"] |
||||
@ -1,9 +1,13 @@ |
|||||
. "./build-aspnetcore-common.ps1" |
. "./build-aspnetcore-common.ps1" |
||||
|
|
||||
# Build all solutions |
# Build all solutions |
||||
foreach ($solution in $solutionArray) { |
foreach ($solution in $serviceArray) { |
||||
$publishPath = $rootFolder + "/../aspnet-core/services/Publish/" |
$publishPath = $rootFolder + "/../aspnet-core/services/Publish/" + $solution.Service |
||||
dotnet publish -c Release -o $publishPath $solution.File --no-cache |
dotnet publish -c Release -o $publishPath $solution.Path --no-cache |
||||
|
$dockerFile = Join-Path $solution.Path "Dockerfile"; |
||||
|
if ((Test-Path $dockerFile)) { |
||||
|
Copy-Item $dockerFile -Destination $publishPath |
||||
|
} |
||||
} |
} |
||||
|
|
||||
Set-Location $rootFolder |
Set-Location $rootFolder |
||||
@ -0,0 +1,2 @@ |
|||||
|
framework |
||||
|
middleware |
||||
@ -0,0 +1,11 @@ |
|||||
|
### 注意事项 |
||||
|
> 仅作为演示部署,不建议用作生产环境,由此产生的任何问题,请自行负责. |
||||
|
|
||||
|
- 请修改本机hosts文件,加入如下条目 |
||||
|
|
||||
|
```shell |
||||
|
本机IP地址 auth-server |
||||
|
``` |
||||
|
|
||||
|
- 身份认证端点:http://auth-server:44385 |
||||
|
- 浏览器访问:http://localhost:40080 |
||||
@ -0,0 +1,58 @@ |
|||||
|
. "../build/build-aspnetcore-common.ps1" |
||||
|
|
||||
|
Write-host "开始部署容器." |
||||
|
|
||||
|
$rootFolder = (Get-Item -Path "../" -Verbose).FullName |
||||
|
$deployPath = $rootFolder + "/deploy"; |
||||
|
$buildPath = $rootFolder + "/build"; |
||||
|
$aspnetcorePath = $rootFolder + "/aspnet-core"; |
||||
|
$vuePath = $rootFolder + "/apps/vue"; |
||||
|
|
||||
|
Write-host "root: " + $rootFolder |
||||
|
|
||||
|
## 部署中间件 |
||||
|
Write-host "deploy middleware..." |
||||
|
Set-Location $rootFolder |
||||
|
docker-compose -f .\docker-compose.middleware.yml up -d --build |
||||
|
|
||||
|
## 等待30秒, 数据库初始化完成 |
||||
|
Write-host "initial database..." |
||||
|
Start-Sleep -Seconds 30 |
||||
|
## 创建数据库 |
||||
|
Write-host "create database..." |
||||
|
Set-Location $aspnetcorePath |
||||
|
cmd.exe /c create-database.bat |
||||
|
|
||||
|
## 执行数据库迁移 |
||||
|
Write-host "migrate database..." |
||||
|
Set-Location $buildPath |
||||
|
foreach ($solution in $migrationArray) { |
||||
|
Set-Location $solution.Path |
||||
|
dotnet run |
||||
|
} |
||||
|
|
||||
|
## 发布程序包 |
||||
|
Write-host "release .net project..." |
||||
|
Set-Location $buildPath |
||||
|
foreach ($solution in $serviceArray) { |
||||
|
$publishPath = $rootFolder + "/aspnet-core/services/Publish/" + $solution.Service + "/" |
||||
|
dotnet publish -c Release -o $publishPath $solution.Path --no-cache |
||||
|
$dockerFile = Join-Path $solution.Path "Dockerfile" |
||||
|
if ((Test-Path $dockerFile)) { |
||||
|
Copy-Item $dockerFile -Destination $publishPath |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
## 构建前端项目 |
||||
|
Write-host "build front project..." |
||||
|
Set-Location $vuePath |
||||
|
pnpm install |
||||
|
pnpm build |
||||
|
|
||||
|
## 运行应用程序 |
||||
|
Write-host "running application..." |
||||
|
Set-Location $rootFolder |
||||
|
docker-compose -f .\docker-compose.yml -f .\docker-compose.override.yml -f .\docker-compose.override.configuration.yml up -d --build |
||||
|
|
||||
|
Set-Location $deployPath |
||||
|
Write-host "application is running..." |
||||
@ -0,0 +1,3 @@ |
|||||
|
-- basic script |
||||
|
|
||||
|
CREATE DATABASE `agile` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci'; |
||||
@ -0,0 +1,317 @@ |
|||||
|
-- basic script |
||||
|
|
||||
|
CREATE DATABASE `Workflow-V70` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci'; |
||||
|
|
||||
|
USE `Workflow-V70`; |
||||
|
|
||||
|
CREATE TABLE IF NOT EXISTS `__EFMigrationsHistory` ( |
||||
|
`MigrationId` varchar(150) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ProductVersion` varchar(32) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
CONSTRAINT `PK___EFMigrationsHistory` PRIMARY KEY (`MigrationId`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
ALTER DATABASE CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE TABLE `Bookmarks` ( |
||||
|
`Id` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`TenantId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Hash` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`Model` longtext CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ModelType` longtext CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ActivityType` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ActivityId` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`WorkflowInstanceId` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`CorrelationId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
CONSTRAINT `PK_Bookmarks` PRIMARY KEY (`Id`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE TABLE `WorkflowDefinitions` ( |
||||
|
`Id` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`DefinitionId` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`TenantId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Name` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`DisplayName` longtext CHARACTER SET utf8mb4 NULL, |
||||
|
`Description` longtext CHARACTER SET utf8mb4 NULL, |
||||
|
`Version` int NOT NULL, |
||||
|
`IsSingleton` tinyint(1) NOT NULL, |
||||
|
`PersistenceBehavior` int NOT NULL, |
||||
|
`DeleteCompletedInstances` tinyint(1) NOT NULL, |
||||
|
`IsPublished` tinyint(1) NOT NULL, |
||||
|
`IsLatest` tinyint(1) NOT NULL, |
||||
|
`Tag` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Data` longtext CHARACTER SET utf8mb4 NULL, |
||||
|
CONSTRAINT `PK_WorkflowDefinitions` PRIMARY KEY (`Id`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE TABLE `WorkflowExecutionLogRecords` ( |
||||
|
`Id` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`TenantId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`WorkflowInstanceId` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ActivityId` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ActivityType` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`Timestamp` datetime(6) NOT NULL, |
||||
|
`EventName` longtext CHARACTER SET utf8mb4 NULL, |
||||
|
`Message` longtext CHARACTER SET utf8mb4 NULL, |
||||
|
`Source` longtext CHARACTER SET utf8mb4 NULL, |
||||
|
`Data` longtext CHARACTER SET utf8mb4 NULL, |
||||
|
CONSTRAINT `PK_WorkflowExecutionLogRecords` PRIMARY KEY (`Id`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE TABLE `WorkflowInstances` ( |
||||
|
`Id` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`DefinitionId` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`TenantId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Version` int NOT NULL, |
||||
|
`WorkflowStatus` int NOT NULL, |
||||
|
`CorrelationId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`ContextType` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`ContextId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Name` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`CreatedAt` datetime(6) NOT NULL, |
||||
|
`LastExecutedAt` datetime(6) NULL, |
||||
|
`FinishedAt` datetime(6) NULL, |
||||
|
`CancelledAt` datetime(6) NULL, |
||||
|
`FaultedAt` datetime(6) NULL, |
||||
|
`Data` longtext CHARACTER SET utf8mb4 NULL, |
||||
|
CONSTRAINT `PK_WorkflowInstances` PRIMARY KEY (`Id`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE INDEX `IX_Bookmark_ActivityId` ON `Bookmarks` (`ActivityId`); |
||||
|
|
||||
|
CREATE INDEX `IX_Bookmark_ActivityType` ON `Bookmarks` (`ActivityType`); |
||||
|
|
||||
|
CREATE INDEX `IX_Bookmark_ActivityType_TenantId_Hash` ON `Bookmarks` (`ActivityType`, `TenantId`, `Hash`); |
||||
|
|
||||
|
CREATE INDEX `IX_Bookmark_CorrelationId` ON `Bookmarks` (`CorrelationId`); |
||||
|
|
||||
|
CREATE INDEX `IX_Bookmark_Hash` ON `Bookmarks` (`Hash`); |
||||
|
|
||||
|
CREATE INDEX `IX_Bookmark_Hash_CorrelationId_TenantId` ON `Bookmarks` (`Hash`, `CorrelationId`, `TenantId`); |
||||
|
|
||||
|
CREATE INDEX `IX_Bookmark_TenantId` ON `Bookmarks` (`TenantId`); |
||||
|
|
||||
|
CREATE INDEX `IX_Bookmark_WorkflowInstanceId` ON `Bookmarks` (`WorkflowInstanceId`); |
||||
|
|
||||
|
CREATE UNIQUE INDEX `IX_WorkflowDefinition_DefinitionId_VersionId` ON `WorkflowDefinitions` (`DefinitionId`, `Version`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowDefinition_IsLatest` ON `WorkflowDefinitions` (`IsLatest`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowDefinition_IsPublished` ON `WorkflowDefinitions` (`IsPublished`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowDefinition_Name` ON `WorkflowDefinitions` (`Name`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowDefinition_Tag` ON `WorkflowDefinitions` (`Tag`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowDefinition_TenantId` ON `WorkflowDefinitions` (`TenantId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowDefinition_Version` ON `WorkflowDefinitions` (`Version`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowExecutionLogRecord_ActivityId` ON `WorkflowExecutionLogRecords` (`ActivityId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowExecutionLogRecord_ActivityType` ON `WorkflowExecutionLogRecords` (`ActivityType`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowExecutionLogRecord_TenantId` ON `WorkflowExecutionLogRecords` (`TenantId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowExecutionLogRecord_Timestamp` ON `WorkflowExecutionLogRecords` (`Timestamp`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowExecutionLogRecord_WorkflowInstanceId` ON `WorkflowExecutionLogRecords` (`WorkflowInstanceId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_ContextId` ON `WorkflowInstances` (`ContextId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_ContextType` ON `WorkflowInstances` (`ContextType`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_CorrelationId` ON `WorkflowInstances` (`CorrelationId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_CreatedAt` ON `WorkflowInstances` (`CreatedAt`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_DefinitionId` ON `WorkflowInstances` (`DefinitionId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_FaultedAt` ON `WorkflowInstances` (`FaultedAt`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_FinishedAt` ON `WorkflowInstances` (`FinishedAt`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_LastExecutedAt` ON `WorkflowInstances` (`LastExecutedAt`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_Name` ON `WorkflowInstances` (`Name`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_TenantId` ON `WorkflowInstances` (`TenantId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_WorkflowStatus` ON `WorkflowInstances` (`WorkflowStatus`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_WorkflowStatus_DefinitionId` ON `WorkflowInstances` (`WorkflowStatus`, `DefinitionId`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_WorkflowStatus_DefinitionId_Version` ON `WorkflowInstances` (`WorkflowStatus`, `DefinitionId`, `Version`); |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20210523093427_Initial', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
ALTER TABLE `WorkflowInstances` MODIFY COLUMN `CorrelationId` varchar(255) CHARACTER SET utf8mb4 NOT NULL DEFAULT ''; |
||||
|
|
||||
|
ALTER TABLE `WorkflowInstances` ADD `LastExecutedActivityId` longtext CHARACTER SET utf8mb4 NULL; |
||||
|
|
||||
|
ALTER TABLE `WorkflowDefinitions` ADD `OutputStorageProviderName` longtext CHARACTER SET utf8mb4 NULL; |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20210611200027_Update21', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
ALTER TABLE `WorkflowDefinitions` DROP COLUMN `OutputStorageProviderName`; |
||||
|
|
||||
|
ALTER TABLE `WorkflowInstances` RENAME `WorkflowInstances`; |
||||
|
|
||||
|
ALTER TABLE `WorkflowExecutionLogRecords` RENAME `WorkflowExecutionLogRecords`; |
||||
|
|
||||
|
ALTER TABLE `WorkflowDefinitions` RENAME `WorkflowDefinitions`; |
||||
|
|
||||
|
ALTER TABLE `Bookmarks` RENAME `Bookmarks`; |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20210923112211_Update23', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
ALTER TABLE `WorkflowInstances` ADD `DefinitionVersionId` longtext CHARACTER SET utf8mb4 NOT NULL; |
||||
|
|
||||
|
ALTER TABLE `Bookmarks` MODIFY COLUMN `CorrelationId` varchar(255) CHARACTER SET utf8mb4 NOT NULL DEFAULT ''; |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20211215100204_Update24', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
ALTER TABLE `WorkflowInstances` MODIFY COLUMN `DefinitionVersionId` varchar(255) CHARACTER SET utf8mb4 NOT NULL; |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowInstance_DefinitionVersionId` ON `WorkflowInstances` (`DefinitionVersionId`); |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20220120170050_Update241', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
CREATE TABLE `Triggers` ( |
||||
|
`Id` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`TenantId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Hash` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`Model` longtext CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ModelType` longtext CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ActivityType` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ActivityId` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`WorkflowDefinitionId` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
CONSTRAINT `PK_Triggers` PRIMARY KEY (`Id`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE INDEX `IX_Trigger_ActivityId` ON `Triggers` (`ActivityId`); |
||||
|
|
||||
|
CREATE INDEX `IX_Trigger_ActivityType` ON `Triggers` (`ActivityType`); |
||||
|
|
||||
|
CREATE INDEX `IX_Trigger_ActivityType_TenantId_Hash` ON `Triggers` (`ActivityType`, `TenantId`, `Hash`); |
||||
|
|
||||
|
CREATE INDEX `IX_Trigger_Hash` ON `Triggers` (`Hash`); |
||||
|
|
||||
|
CREATE INDEX `IX_Trigger_Hash_TenantId` ON `Triggers` (`Hash`, `TenantId`); |
||||
|
|
||||
|
CREATE INDEX `IX_Trigger_TenantId` ON `Triggers` (`TenantId`); |
||||
|
|
||||
|
CREATE INDEX `IX_Trigger_WorkflowDefinitionId` ON `Triggers` (`WorkflowDefinitionId`); |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20220120204150_Update25', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
ALTER TABLE `WorkflowDefinitions` ADD `CreatedAt` datetime(6) NOT NULL DEFAULT '0001-01-01 00:00:00'; |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20220512203646_Update28', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
|
|
||||
|
|
||||
|
-- webhooks |
||||
|
|
||||
|
CREATE TABLE IF NOT EXISTS `__EFMigrationsHistory` ( |
||||
|
`MigrationId` varchar(150) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ProductVersion` varchar(32) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
CONSTRAINT `PK___EFMigrationsHistory` PRIMARY KEY (`MigrationId`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
ALTER DATABASE CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE TABLE `WebhookDefinitions` ( |
||||
|
`Id` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`TenantId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Name` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`Path` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`Description` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`PayloadTypeName` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`IsEnabled` tinyint(1) NOT NULL, |
||||
|
CONSTRAINT `PK_WebhookDefinitions` PRIMARY KEY (`Id`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE INDEX `IX_WebhookDefinition_Description` ON `WebhookDefinitions` (`Description`); |
||||
|
|
||||
|
CREATE INDEX `IX_WebhookDefinition_IsEnabled` ON `WebhookDefinitions` (`IsEnabled`); |
||||
|
|
||||
|
CREATE INDEX `IX_WebhookDefinition_Name` ON `WebhookDefinitions` (`Name`); |
||||
|
|
||||
|
CREATE INDEX `IX_WebhookDefinition_Path` ON `WebhookDefinitions` (`Path`); |
||||
|
|
||||
|
CREATE INDEX `IX_WebhookDefinition_PayloadTypeName` ON `WebhookDefinitions` (`PayloadTypeName`); |
||||
|
|
||||
|
CREATE INDEX `IX_WebhookDefinition_TenantId` ON `WebhookDefinitions` (`TenantId`); |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20210604065041_Initial', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
|
|
||||
|
|
||||
|
-- workflow-settings |
||||
|
|
||||
|
CREATE TABLE IF NOT EXISTS `__EFMigrationsHistory` ( |
||||
|
`MigrationId` varchar(150) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`ProductVersion` varchar(32) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
CONSTRAINT `PK___EFMigrationsHistory` PRIMARY KEY (`MigrationId`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
START TRANSACTION; |
||||
|
|
||||
|
ALTER DATABASE CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE TABLE `WorkflowSettings` ( |
||||
|
`Id` varchar(255) CHARACTER SET utf8mb4 NOT NULL, |
||||
|
`WorkflowBlueprintId` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Key` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
`Value` varchar(255) CHARACTER SET utf8mb4 NULL, |
||||
|
CONSTRAINT `PK_WorkflowSettings` PRIMARY KEY (`Id`) |
||||
|
) CHARACTER SET utf8mb4; |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowSetting_Key` ON `WorkflowSettings` (`Key`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowSetting_Value` ON `WorkflowSettings` (`Value`); |
||||
|
|
||||
|
CREATE INDEX `IX_WorkflowSetting_WorkflowBlueprintId` ON `WorkflowSettings` (`WorkflowBlueprintId`); |
||||
|
|
||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`) |
||||
|
VALUES ('20210730112043_Initial', '5.0.10'); |
||||
|
|
||||
|
COMMIT; |
||||
@ -1,288 +0,0 @@ |
|||||
version: '3.4' |
|
||||
|
|
||||
services: |
|
||||
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=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=AuthServer |
|
||||
- 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 |
|
||||
- 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 |
|
||||
|
|
||||
sts-api: |
|
||||
environment: |
|
||||
- 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 |
|
||||
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
|
||||
- Encryption__InitVector=s83ng0abvd02js84 |
|
||||
- Encryption__Salt=sf&5)s3# |
|
||||
- CAP__EventBus__DefaultGroup=IdentityServer4Admin |
|
||||
- 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 |
|
||||
|
|
||||
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 |
|
||||
- ConnectionStrings__AbpLocalizationManagement=Server=127.0.0.1;Database=Platform;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=Localization-Management |
|
||||
- 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 |
|
||||
|
|
||||
platform-api: |
|
||||
environment: |
|
||||
- App__TrackingEntitiesChanged=true |
|
||||
- ConnectionStrings__Default=Server=127.0.0.1;Database=Platform;User Id=root;Password=123456 |
|
||||
- ConnectionStrings__AppPlatform=Server=127.0.0.1;Database=Platform;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 |
|
||||
- RemoteServices__AbpIdentity__BaseUrl=http://127.0.0.1:30015/ |
|
||||
- RemoteServices__AbpIdentity__IdentityClient=InternalServiceClient |
|
||||
- IdentityClients__InternalServiceClient__Authority=http://127.0.0.1:44385/ |
|
||||
- IdentityClients__InternalServiceClient__RequireHttps=false |
|
||||
- IdentityClients__InternalServiceClient__GrantType=client_credentials |
|
||||
- IdentityClients__InternalServiceClient__Scope=lingyun-abp-application |
|
||||
- IdentityClients__InternalServiceClient__ClientId=internal-service-client |
|
||||
- IdentityClients__InternalServiceClient__ClientSecret=1q2w3e* |
|
||||
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
|
||||
- Encryption__InitVector=s83ng0abvd02js84 |
|
||||
- Encryption__Salt=sf&5)s3# |
|
||||
- Features__Validation__Redis__Configuration=127.0.0.1,defaultDatabase=11 |
|
||||
- Features__Validation__Redis__InstanceName=LINGYUN.Abp.Application |
|
||||
- CAP__EventBus__DefaultGroup=Platform |
|
||||
- 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 |
|
||||
|
|
||||
messages-api: |
|
||||
environment: |
|
||||
- App__CorsOrigins=http://127.0.0.1:40000,http://127.0.0.1:30000 |
|
||||
- App__TrackingEntitiesChanged=true |
|
||||
- ConnectionStrings__Default=Server=127.0.0.1;Database=Messages;User Id=root;Password=123456 |
|
||||
- ConnectionStrings__MessageService=Server=127.0.0.1;Database=Messages;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=MessageService |
|
||||
- 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 |
|
||||
- Hangfire__MySql__Connection=Server=127.0.0.1;Database=Messages;User Id=root;Password=123456;Allow User Variables=true |
|
||||
- Hangfire__Dashboard__WhiteList=127.0.0.1 |
|
||||
- Notifications__WeChat__WeApp__DefaultWeAppState=formal |
|
||||
|
|
||||
task-api: |
|
||||
environment: |
|
||||
- App__TrackingEntitiesChanged=true |
|
||||
- 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=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: |
|
||||
environment: |
|
||||
- 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: |
|
||||
environment: |
|
||||
- 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 |
|
||||
- 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 |
|
||||
|
|
||||
internal-apigateway: |
|
||||
environment: |
|
||||
- App__TrackingEntitiesChanged=true |
|
||||
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
|
||||
- Encryption__InitVector=s83ng0abvd02js84 |
|
||||
- Encryption__Salt=sf&5)s3# |
|
||||
- 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 |
|
||||
@ -0,0 +1,110 @@ |
|||||
|
version: '3.4' |
||||
|
|
||||
|
services: |
||||
|
abp-redis: |
||||
|
image: redis:6 |
||||
|
hostname: abp-redis |
||||
|
container_name: abp-redis |
||||
|
environment: |
||||
|
- TZ=Asia/Shanghai |
||||
|
volumes: |
||||
|
- ./deploy/middleware/redis/data:/data |
||||
|
ports: |
||||
|
- "6379:6379" |
||||
|
restart: always |
||||
|
networks: |
||||
|
- abp-next-admin |
||||
|
|
||||
|
abp-mysql: |
||||
|
image: mysql |
||||
|
hostname: abp-mysql |
||||
|
container_name: abp-mysql |
||||
|
ports: |
||||
|
- "3306:3306" |
||||
|
environment: |
||||
|
- MYSQL_ROOT_PASSWORD=123456 |
||||
|
- MYSQL_ROOT_HOST=% |
||||
|
- TZ=Asia/Shanghai |
||||
|
command: |
||||
|
--default-authentication-plugin=mysql_native_password |
||||
|
--character-set-server=utf8mb4 |
||||
|
--collation-server=utf8mb4_general_ci |
||||
|
--lower_case_table_names=1 |
||||
|
--max_connections=1024 |
||||
|
volumes: |
||||
|
- ./deploy/middleware/mysql/data:/var/lib/mysql |
||||
|
- ./deploy/middleware/mysql/conf:/etc/mysql/conf.d |
||||
|
- ./deploy/middleware/mysql/logs:/logs |
||||
|
- ./deploy/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d |
||||
|
restart: always |
||||
|
networks: |
||||
|
- abp-next-admin |
||||
|
|
||||
|
abp-rabbitmq: |
||||
|
image: rabbitmq:management |
||||
|
hostname: abp-rabbitmq |
||||
|
container_name: abp-rabbitmq |
||||
|
ports: |
||||
|
- "5672:5672" |
||||
|
- "15672:15672" |
||||
|
- "25672:25672" |
||||
|
environment: |
||||
|
- RABBITMQ_ERLANG_COOKIE=8ue48g9FJQ87YV9Hfd8yhg== |
||||
|
- RABBITMQ_DEFAULT_VHOST=/ |
||||
|
- RABBITMQ_DEFAULT_USER=admin |
||||
|
- RABBITMQ_DEFAULT_PASS=123456 |
||||
|
- TZ=Asia/Shanghai |
||||
|
volumes: |
||||
|
- ./deploy/middleware/rabbitmq/logs:/var/log/rabbitmq |
||||
|
- ./deploy/middleware/rabbitmq/data:/var/lib/rabbitmq |
||||
|
restart: always |
||||
|
networks: |
||||
|
- abp-next-admin |
||||
|
|
||||
|
abp-elasticsearch: |
||||
|
image: elasticsearch:7.16.3 |
||||
|
container_name: abp-elasticsearch |
||||
|
restart: always |
||||
|
environment: |
||||
|
- "cluster.name=elasticsearch" |
||||
|
- "discovery.type=single-node" |
||||
|
- "ES_JAVA_OPTS=-Xms15g -Xmx15g" |
||||
|
volumes: |
||||
|
- ./deploy/middleware/elasticsearch/plugins:/usr/share/elasticsearch/plugins |
||||
|
- ./deploy/middleware/elasticsearch/data:/usr/share/elasticsearch/data |
||||
|
ports: |
||||
|
- 9200:9200 |
||||
|
networks: |
||||
|
- abp-next-admin |
||||
|
|
||||
|
abp-kibana: |
||||
|
image: kibana:7.16.3 |
||||
|
container_name: abp-kibana |
||||
|
restart: always |
||||
|
depends_on: |
||||
|
- abp-elasticsearch |
||||
|
environment: |
||||
|
- ELASTICSEARCH_URL=http://host.docker.internal:9200 |
||||
|
ports: |
||||
|
- 5601:5601 |
||||
|
networks: |
||||
|
- abp-next-admin |
||||
|
extra_hosts: |
||||
|
- "host.docker.internal:host-gateway" |
||||
|
|
||||
|
abp-logstash: |
||||
|
image: logstash:7.16.3 |
||||
|
container_name: abp-logstash |
||||
|
restart: always |
||||
|
depends_on: |
||||
|
- abp-elasticsearch |
||||
|
links: |
||||
|
- abp-elasticsearch:es |
||||
|
ports: |
||||
|
- 4560:4560 |
||||
|
networks: |
||||
|
- abp-next-admin |
||||
|
|
||||
|
networks: |
||||
|
abp-next-admin: |
||||
|
driver: bridge |
||||
@ -0,0 +1,509 @@ |
|||||
|
version: '3.4' |
||||
|
|
||||
|
services: |
||||
|
sts-server: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- App__SelfUrl=http://auth-server:44385/ |
||||
|
- App__RefreshClaimsUrl=http://host.docker.internal-api:30015 |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
||||
|
- Encryption__InitVector=s83ng0abvd02js84 |
||||
|
- Encryption__Salt=sf&5)s3# |
||||
|
- CAP__EventBus__DefaultGroup=AuthServer |
||||
|
- CAP__EventBus__Version=v1 |
||||
|
- CAP__EventBus__FailedRetryInterval=300 |
||||
|
- CAP__EventBus__FailedRetryCount=10 |
||||
|
- CAP__RabbitMQ__HostName=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=auth |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
- IdentityServer__Clients__InternalService__ClientId=InternalServiceClient |
||||
|
- IdentityServer__Clients__AuthVueAdmin__ClientId=vue-admin-client |
||||
|
- IdentityServer__Clients__AuthVueAdmin__RootUrl=http://localhost:3100/ |
||||
|
|
||||
|
sts-api: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
||||
|
- Encryption__InitVector=s83ng0abvd02js84 |
||||
|
- Encryption__Salt=sf&5)s3# |
||||
|
- CAP__EventBus__DefaultGroup=IdentityServer4Admin |
||||
|
- CAP__EventBus__Version=v1 |
||||
|
- CAP__EventBus__FailedRetryInterval=300 |
||||
|
- CAP__EventBus__FailedRetryCount=10 |
||||
|
- CAP__RabbitMQ__HostName=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=ida |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
|
||||
|
admin-api: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-V70;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=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=admin |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__MinimumLevel__Default=Debug |
||||
|
- Serilog__Override__System=Debug |
||||
|
- Serilog__Override__Microsoft=Debug |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
|
||||
|
localization-api: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
||||
|
- Encryption__InitVector=s83ng0abvd02js84 |
||||
|
- Encryption__Salt=sf&5)s3# |
||||
|
- CAP__EventBus__DefaultGroup=Localization-Management |
||||
|
- CAP__EventBus__Version=v1 |
||||
|
- CAP__EventBus__FailedRetryInterval=300 |
||||
|
- CAP__EventBus__FailedRetryCount=10 |
||||
|
- CAP__RabbitMQ__HostName=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=lta |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
|
||||
|
platform-api: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- RemoteServices__AbpIdentity__BaseUrl=http://sts-api:30015/ |
||||
|
- RemoteServices__AbpIdentity__IdentityClient=InternalServiceClient |
||||
|
- IdentityClients__InternalServiceClient__Authority=http://auth-server:44385/ |
||||
|
- IdentityClients__InternalServiceClient__RequireHttps=false |
||||
|
- IdentityClients__InternalServiceClient__GrantType=client_credentials |
||||
|
- IdentityClients__InternalServiceClient__Scope=lingyun-abp-application |
||||
|
- IdentityClients__InternalServiceClient__ClientId=internal-service-client |
||||
|
- IdentityClients__InternalServiceClient__ClientSecret=1q2w3e* |
||||
|
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
||||
|
- Encryption__InitVector=s83ng0abvd02js84 |
||||
|
- Encryption__Salt=sf&5)s3# |
||||
|
- Features__Validation__Redis__Configuration=host.docker.internal,defaultDatabase=11 |
||||
|
- Features__Validation__Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- CAP__EventBus__DefaultGroup=Platform |
||||
|
- CAP__EventBus__Version=v1 |
||||
|
- CAP__EventBus__FailedRetryInterval=300 |
||||
|
- CAP__EventBus__FailedRetryCount=10 |
||||
|
- CAP__RabbitMQ__HostName=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=platform |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
|
||||
|
messages-api: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
||||
|
- Encryption__InitVector=s83ng0abvd02js84 |
||||
|
- Encryption__Salt=sf&5)s3# |
||||
|
- CAP__EventBus__DefaultGroup=MessageService |
||||
|
- CAP__EventBus__Version=v1 |
||||
|
- CAP__EventBus__FailedRetryInterval=300 |
||||
|
- CAP__EventBus__FailedRetryCount=10 |
||||
|
- CAP__RabbitMQ__HostName=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=messages |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
- Notifications__WeChat__WeApp__DefaultWeAppState=formal |
||||
|
|
||||
|
task-api: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
||||
|
- Encryption__InitVector=s83ng0abvd02js84 |
||||
|
- Encryption__Salt=sf&5)s3# |
||||
|
- CAP__EventBus__DefaultGroup=TaskManagement |
||||
|
- CAP__EventBus__Version=v1 |
||||
|
- CAP__EventBus__FailedRetryInterval=300 |
||||
|
- CAP__EventBus__FailedRetryCount=10 |
||||
|
- CAP__RabbitMQ__HostName=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=messages |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
|
||||
|
webhook-api: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-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=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=webhook |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
|
||||
|
workflow-api: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- ConnectionStrings__Default=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpAuditLogging=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpOpenIddict=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentity=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpIdentityServer=Server=host.docker.internal;Database=IdentityServer-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSaas=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTenantManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpFeatureManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpSettingManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpPermissionManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpLocalizationManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__AbpTextTemplating=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__TaskManagement=Server=host.docker.internal;Database=Platform-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Workflow=Server=host.docker.internal;Database=Workflow-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__Notifications=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- ConnectionStrings__MessageService=Server=host.docker.internal;Database=Messages-V70;User Id=root;Password=123456 |
||||
|
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
||||
|
- Encryption__InitVector=s83ng0abvd02js84 |
||||
|
- Encryption__Salt=sf&5)s3# |
||||
|
- Elsa__Rebus__RabbitMQ__Connection=amqp://admin:123456@host.docker.internal:5672/ |
||||
|
- CAP__EventBus__DefaultGroup=Workflow |
||||
|
- CAP__EventBus__Version=v1 |
||||
|
- CAP__EventBus__FailedRetryInterval=300 |
||||
|
- CAP__EventBus__FailedRetryCount=10 |
||||
|
- CAP__RabbitMQ__HostName=host.docker.internal |
||||
|
- CAP__RabbitMQ__Port=5672 |
||||
|
- CAP__RabbitMQ__UserName=admin |
||||
|
- CAP__RabbitMQ__Password=123456 |
||||
|
- CAP__RabbitMQ__ExchangeName=LINGYUN.Abp.Application |
||||
|
- CAP__RabbitMQ__VirtualHost=/ |
||||
|
- CAP__MySql__TableNamePrefix=workflow |
||||
|
- CAP__MySql__ConnectionString=Server=host.docker.internal;Database=Platform-v70;User Id=root;Password=123456 |
||||
|
- DistributedCache__HideErrors=true |
||||
|
- DistributedCache__KeyPrefix=LINGYUN.Abp.Application |
||||
|
- DistributedCache__GlobalCacheEntryOptions__SlidingExpiration=30:00:00 |
||||
|
- DistributedCache__GlobalCacheEntryOptions__AbsoluteExpirationRelativeToNow=60:00:00 |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- RemoteServices__AbpOssManagement__BaseUrl=http://platform:30025 |
||||
|
- RemoteServices__AbpOssManagement__IdentityClient=InternalServiceClient |
||||
|
- RemoteServices__AbpOssManagement__UseCurrentAccessToken=false |
||||
|
- IdentityClients__InternalServiceClient__Authority=http://auth-server:44385/ |
||||
|
- IdentityClients__InternalServiceClient__GrantType=client_credentials |
||||
|
- IdentityClients__InternalServiceClient__Scope=lingyun-abp-application |
||||
|
- IdentityClients__InternalServiceClient__ClientId=InternalServiceClient |
||||
|
- IdentityClients__InternalServiceClient__ClientSecret=1q2w3e* |
||||
|
- IdentityClients__InternalServiceClient__RequireHttps=false |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
|
|
||||
|
internal-apigateway: |
||||
|
environment: |
||||
|
- AgileConfig__IsEnabled=false |
||||
|
- Auditing__AllEntitiesSelector=true |
||||
|
- App__CorsOrigins=http://localhost:3100,http://localhost:30000,http://apigateway:30000 |
||||
|
- Encryption__PassPhrase=s46c5q55nxpeS8Ra |
||||
|
- Encryption__InitVector=s83ng0abvd02js84 |
||||
|
- Encryption__Salt=sf&5)s3# |
||||
|
- DistributedLock__IsEnabled=true |
||||
|
- DistributedLock__Redis__Configuration=host.docker.internal,defaultDatabase=13 |
||||
|
- Elasticsearch__NodeUris=http://host.docker.internal:9200 |
||||
|
- Serilog__WriteTo__0__Name=Console |
||||
|
- Serilog__WriteTo__1__Name=Elasticsearch |
||||
|
- Serilog__WriteTo__1__Args__nodeUris=http://host.docker.internal:9200 |
||||
|
- Redis__Configuration=host.docker.internal,defaultDatabase=10 |
||||
|
- Redis__InstanceName=LINGYUN.Abp.Application |
||||
|
- AuthServer__Authority=http://auth-server:44385 |
||||
|
- AuthServer__ApiName=lingyun-abp-application |
||||
@ -1,117 +0,0 @@ |
|||||
version: '3.4' |
|
||||
|
|
||||
services: |
|
||||
sts-server: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/identityserver |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\ids-sts:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\ids-sts\Modules:/app/Modules |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
sts-api: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/identityserver4-admin |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\ids-admin:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\ids-admin\Modules:/app/Modules |
|
||||
depends_on: |
|
||||
- sts-server |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
admin-api: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/admin |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\backend-admin:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\backend-admin\Modules:/app/Modules |
|
||||
depends_on: |
|
||||
- sts-server |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
localization-api: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/localization |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\localization:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\localization\Modules:/app/Modules |
|
||||
depends_on: |
|
||||
- sts-server |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
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\Modules:/app/Modules |
|
||||
- D:\Projects\Development\Abp\Application\data\platform:/app/file-blob-storing |
|
||||
depends_on: |
|
||||
- sts-server |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
messages-api: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/messages |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\messages:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\messages\Modules:/app/Modules |
|
||||
depends_on: |
|
||||
- sts-server |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
task-api: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/task-management |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\task-management:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\task-management\Modules:/app/Modules |
|
||||
depends_on: |
|
||||
- sts-server |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
webhook-api: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/webhooks |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\webhooks:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\webhooks\Modules:/app/Modules |
|
||||
depends_on: |
|
||||
- sts-server |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
workflow-api: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/workflow |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\workflow:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\workflow\Modules:/app/Modules |
|
||||
depends_on: |
|
||||
- sts-server |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
internal-apigateway: |
|
||||
build: |
|
||||
context: ./aspnet-core/services/Publish/internal-apigateway |
|
||||
volumes: |
|
||||
- D:\Projects\Development\Abp\Application\logs\internal-apigateway:/app/Logs |
|
||||
- D:\Projects\Development\Abp\Application\data\internal-apigateway\Modules:/app/Modules |
|
||||
networks: |
|
||||
- framework |
|
||||
|
|
||||
volumes: |
|
||||
dbdata: |
|
||||
|
|
||||
networks: |
|
||||
framework: |
|
||||
name: linyun-abp |
|
||||
external: true |
|
||||
@ -0,0 +1 @@ |
|||||
|
{} |
||||
Loading…
Reference in new issue