15 lines
364 B
C#
15 lines
364 B
C#
|
|
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();
|