Skip to content

Add Compose CLI ECS documentation for redirecting 443 HTTPS traffic to any container port #14739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions cloud/ecs-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,28 @@ x-aws-cloudformation:
Port: 443
```

#### Setting SSL termination by Load Balancer (non-privileged ports)

Non privileged ports create a network load balancer, but you can use the `x-aws-protocol` flag to instead create an application load balancer, and an overlay can then direct HTTPS traffic to your container. This example forwards port 443 traffic to port 8080.

```yaml
services:
webapp:
image: acme/webapp
ports:
- target: 8080
x-aws-protocol: http # enable an application load balancer

x-aws-cloudformation:
Resources:
WebappTCP8080Listener:
Properties:
Certificates:
- CertificateArn: "arn:aws:acm:certificate/123abc"
Protocol: HTTPS
Port: 443
```

## Using existing AWS network resources

By default, the Docker Compose CLI creates an ECS cluster for your Compose application, a Security Group per network in your Compose file on your AWS account’s default VPC, and a LoadBalancer to route traffic to your services.
Expand Down