Hello guys and girls,
I’ve the feeling of better introducing myself first. I’m a 20 y/o junior web developer from Germany. I just finished school and started working as a PHP Developer at a local Software Development Company.
A few weeks ago I started learning about Docker and I decided to build my very own development environment with Docker on a local server. (Yes, a server… not my local Desktop having Docker installed and exposing the Ports to the other PCs in the local network)
After a few days of trying I now do need some help. I have some local containers with the services I would like to have in my network and till now I simply exposed them over a few ports. Now I’d like to improve this. I’d like to be able to connect to my server using names like [name of the container].[name of the host server] instead of [name of the host server]:[port]! I tried to to this using nginx as a proxy but I just couldn’t get a connection. I just got time-outs!
Now my question is: Does anybody have a solution for being able to call the servers like this? Did I forget something like a setting? Do I need to install a local DNS on my server and let my router forward all DNS requests to that DNS? Does anybody have anything like a blog posting concearning my problem?
If you need any more information I’m free to answer your questions.