Docker Community Forums

Share and learn in the Docker community.

2 containers listen on the same port

(Xkcd) #1


  • I am on free plan so I can have only one node
  • I have 2 websites (in python but I guess it doesn’t matter) running in 2 containers on this single node
  • I am under corporate firewall so in general I can only browse to standard HTTP port 80

Question: how can I have 2 containers on a single node listening on the same port 80?

I think I need a load balancer or reverse proxy like traefik but is there a simpler way to do that on Docker Cloud? -Thanks-