Removed version specification in docker compose file #24

Merged
khwezi merged 2 commits from setup into master 2026-06-06 11:15:00 +02:00
3 changed files with 5 additions and 9 deletions
-2
View File
@@ -1,5 +1,3 @@
version: '3.4'
services:
litecharmssecurity.admin:
image: skoruba-duende-identityserver-admin
@@ -24,6 +24,11 @@ namespace LiteCharmsSecurity.Admin.Api
public static async Task Main(string[] args)
{
// Force EF Core to globally ignore the Model Drift warning at the AppDomain level
AppContext.SetSwitch("Microsoft.EntityFrameworkCore.Issue34300", true);
// OR if using standard diagnostics suppression:
System.Environment.SetEnvironmentVariable("EF_CORE_SUPPRESS_PENDING_MODEL_CHANGES_WARNING", "true");
var configuration = GetConfiguration(args);
Log.Logger = new LoggerConfiguration()
@@ -111,13 +111,6 @@ namespace LiteCharmsSecurity.Admin.Api
DatabaseMigrationsConfiguration databaseMigration)
{
services.AddDbContexts<AdminIdentityDbContext, IdentityServerConfigurationDbContext, IdentityServerPersistedGrantDbContext, AdminLogDbContext, AdminAuditLogDbContext, IdentityServerDataProtectionDbContext, AdminConfigurationDbContext, AuditLog>(Configuration, databaseMigration);
// 2. Intercept the DbContextOptions configurations in the DI container and inject the ignore rule
services.Configure<DbContextOptionsBuilder<AdminIdentityDbContext>>(options =>
options.ConfigureWarnings(w => w.Ignore(RelationalEventId.PendingModelChangesWarning)));
services.Configure<DbContextOptionsBuilder<IdentityServerConfigurationDbContext>>(options =>
options.ConfigureWarnings(w => w.Ignore(RelationalEventId.PendingModelChangesWarning)));
}
public virtual void RegisterAuthentication(IServiceCollection services)