I have a problem with public/local proxy (hybrid usage, server has its own dns pointing to itself). When there is a public request to some container (external or from other docker network than container is connected to) proxy is behaving properly and the request target ip is proxy ip. There is another situation when the request is from the docker network the container and the request sender container are connected to. The container ip is returned than the proxy one. It could be acceptable, but the container have port 80 open and the request is over 443 port (proxy have this port open). The request cannot be done. How to turn off this internal forwarding to the proxy ip be always returned?
There was a problem with proposed hostname parameter in gitlab docker compose. Just not use it and that blocked the whole setup. DiG command was helpful.