title: Docker compose and listener in a pre created AWS Load Balancer
body: <p>I have a service deployed with docker compose but I'm using a pre-created cluster and load balancer in AWS.</p>
  <p>I want to use https in my service so I'd need docker compose to create a new <code>listener</code> ( port 443) in the load balancer that I have and forward traffic to the <code>target group</code> that docker compose created for the web service.</p>
  <p>I have been checking the docs but I could not find this. I found creating a load balancer and adding the 443 listener, but I need to use the load balancer that I'm setting not create a new one.</p>
  <p>Does anyone have experience with this?</p>
  <pre><code>x-aws-vpc: &quot;my-vpc&quot;
  x-aws-cluster: &quot;my-cluster&quot;
  x-aws-loadbalancer: &quot;ly-load-balancer-arn&quot;
  
  services:
    web:
      image: my-ecr-image:tag
      networks:
        - back_tier
      ports:
        - 3000:3000
  
  networks:
    back_tier:
      external: true
      name: &quot;my-security-group&quot;
  </code></pre>