From internal docker network via external Traefik (network) to outside world

Hi all,

I am a bit stuck in the lusterous world of Traefik (and Docker) here. I have a Docker application which has a web-based GUI but no SSL support. Therefore, I have placed Traefik in front of it. To make sure the web-based GUI itself is not accessible from outside, I have put the container running the application and the Traefik container in a Docker network which is internal. As Traefik is part of an external network, it allows me to access the application over https.

The problem I am facing is that the application needs to call/redirect/fetch to an url outside of the internal network and outside of Docker. (It is still within my 192.168.x.x.) All I can find on the internet is how to reach internal networks, not how to start from an internal network, go through Traefik's external network etc. Would you be able to tell me if is this possible and, if so, how to achieve it?

Very high over, this is what I am trying to achieve.

Kind regards

Even if a Docker container is attached to a Docker network, requests to external domains/IPs should still be possible.

What is not working? Error message?

Hi Bluepuma77, thank you for your reply.

It works fine if I add the container 'some_app' to the network 'iam_external'. However, if I use the desired architecture as the image shows and I get the following error message error="dial tcp 192.168.x.x:xx->192.168.x.x:xx: i/o timeout"