Am I using the correct technology for what i am trying to achieve? Docker networking

Hello,

I am trying to create my first docker project.
However its not going that great and I am unsure if I have the right tool.

Yesterday I spent hours trying to configure a setup like this:

The idea is that a normal computer on the local network can request web content from the “main” container, by using IP and port. There is an unknown number of “project” containers, which has the web content.
So the “main” container has to get the content from the “project” container which hosts it.
It then gets returned back to the normal computer.

I asked a friend of mine and he suggested me to use kubernetes, however I would prefer staying with a normal docker setup, if possible.

What are your thoughts?

Are you talking about a proxy? A proxy server is a single point of contact, usually handles TLS, and proxies/forwards requests based on host/path to other services.

I like to use nginx-proxy (link) or Traefik (example), which can auto configure the targets by env/labels and even create LetsEncrypt TLS certs.

1 Like

Yea I suppose it could work as a proxy server. That actually does make sense.
Thanks!