Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to Host Multiple Docker Containers on a Single Server with Nginx Reverse Proxy?
At the urging of the video creator, I am posting this question mainly for educational purposes.
I followed the instructions in the video and managed to have a working proxy server just like video ones.
Issues start when I decided to set up the same proxy server on a Linux distribution other than Ubuntu.
I tried it in Arch, open suse, centos and red hat.
Although everything was done correctly, such as installing programs, setting up applications and configurations, the proxy failed to serve the containers but served the nginx default page.
A little background.
- The domain names are not stated by a DNS host but /etc/host was used as a DNS server.
- Containers possible to reached with ip and port number but not with server name.
- Above tried both in cloud servers and local VM engines with same results (only Ubuntu success.)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×