var builder = DistributedApplication.CreateBuilder(args); var postgres = builder.AddPostgres("postgres") .WithPgAdmin() .AddDatabase("gmrelaydb"); var bot = builder.AddProject("bot") .WithReference(postgres) .WaitFor(postgres) .WithHttpEndpoint(port: 8081, targetPort: 8081, name: "health", isProxied: false) .WithHttpHealthCheck("/health", endpointName: "health"); builder.AddProject("discord") .WithReference(postgres) .WaitFor(postgres) .WaitFor(bot); builder.AddProject("web") .WithReference(postgres) .WaitFor(postgres) .WaitFor(bot); builder.Build().Run();