0

I want to have multiple Web apps hosted on the same cloud node running as separate Docker containers. The Docker setup actually isn't much of the problem for me, but the fact that only one of the Web applications can be bound to port 80, to which I have my registered domain mapped. If I'm not mistaken, there's no way to map (sub)domains to particular port, so I'm wondering how people work around this.

Psycho Punch
  • 101
  • 1

1 Answers1

0

The thing I see most commonly done in this circumstance is using jwilder/nginx-proxy to handle all incoming connections and then proxy them to the correct container.

More complete PaaS solutions like Kubernetes and OpenShift have their own means of handling this (e.g. by running an internal haproxy container which does the same thing).

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972