Вопрос

I am a new user of docker.io.

I want deploy multiple docker.io containers in one linode host, for example:

  • blog.xi3.io <--> docker container #1 with a blog app
  • data.xi3.io <--> docker container #2 with a data app
  • ....
  • xxx.xi3.io <--> docker container #n with a xxx app
Это было полезно?

Решение

Related to port redirect to docker containers by hostname. In order to accomplish that you'll need to have each container expose it's port 80 (or whichever port an app server is listening on) to the host and then run some sort of a reverse proxy on the host machine to route the traffic properly.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top