prom3theu5 / aspirational-manifests

Handle deployments of .NET Aspire AppHost Projects
MIT License
702 stars 36 forks source link

Port binding while compose generating #215

Open Banananick19 opened 5 months ago

Banananick19 commented 5 months ago

🚀 Feature Description

Set published port for compose container from binding.port in aspire manifest.

✔ Goals

Make possible to provide published port in AppHost/Program like builder.AddProject("bar").WithEndpoint(port:20000, targetPort:8080), where published port in output compose is 20000 and target port is 8080

🧰 Possible Solution

add param to switch pattern to set publish ports