Add Aspire orchestration
Some checks failed
continuous-integration/drone/push Build is failing

Therefore remove previous OpenTelemetry configuration and use the one
provided in service defaults
This commit is contained in:
2024-12-28 17:01:18 +01:00
parent bbac953660
commit 6d23494fd3
15 changed files with 270 additions and 44 deletions

View File

@@ -0,0 +1,14 @@
using Vegasco.Server.AppHost.Shared;
var builder = DistributedApplication.CreateBuilder(args);
var postgres = builder.AddPostgres(Constants.Database.ServiceName)
.WithDataVolume()
.AddDatabase(Constants.Database.Name);
builder
.AddProject<Projects.WebApi>(Constants.Projects.WebApiName)
.WithReference(postgres)
.WaitFor(postgres);
builder.Build().Run();