diff --git a/src/Vegasco.Server.AppHost/Program.cs b/src/Vegasco.Server.AppHost/Program.cs index 476f8c4..5d592bc 100644 --- a/src/Vegasco.Server.AppHost/Program.cs +++ b/src/Vegasco.Server.AppHost/Program.cs @@ -3,6 +3,7 @@ using Vegasco.Server.AppHost.Shared; IDistributedApplicationBuilder builder = DistributedApplication.CreateBuilder(args); IResourceBuilder postgres = builder.AddPostgres(Constants.Database.ServiceName) + .WithLifetime(ContainerLifetime.Persistent) .WithDataVolume() .AddDatabase(Constants.Database.Name);