I have a VPS is running to web sites by docker.
foo.com works great, which is running by docker run -p 80:80 fooV1.
Then I want to host one my site by another docker container.
I want to use anotherfoo.com without port number. But as the VPS 80 port is using my foo.com container, I can only use docker run -p 9000:80 anotherfooV1 then when access I have to use port number. anotherfoo.com:9000 to access.
I know Nginx has a reverse proxy for nothing such so, but does it work for docker containers too?
How to remove the 9000 from my anotheroo.com:9000?
thanks!
Aucun commentaire:
Enregistrer un commentaire