docker-archive / compose-cli

Easily run your Compose application to the cloud with compose-cli
Apache License 2.0
956 stars 253 forks source link

Adding "path pattern" ALB Listener Rules for ECS #2209

Open benknight opened 1 year ago

benknight commented 1 year ago

This is either a question or a feature request, but I would love to be able to run two different services on the same port and then use path prefixes to route to each separately.

For example, svc1 and sc2 both run on port 80, then, my-alb-1234567.us-east-1.elb.amazonaws.com/svc1 -> svc1 target group my-alb-1234567.us-east-1.elb.amazonaws.com/svc2 -> svc2 target group

In AWS this is accomplished by creating listener rules for each path pattern. I don't believe it's possible to achieve this using x-aws-cloudformation overlay because the compose cli will attempt to create two listeners on the same port, which is forbidden.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.