Originated from https://github.com/hpello/tcp-proxy-docker For proxying a TCP connection for an already running container, spawned by Docker-compose, that didn't exposed it's port, use following:
- Find your composed container' network:
docker network list
- Open a
<proxy_port>
on your host which will forward connection to<container_port>
in your<container_name>
: