利用socat
来进行端口转发
socat.sh 文件
|
|
docker-compose.yml 文件
|
|
使用方式:
Variable | Description | Optional |
---|---|---|
DEF_/REMOTE_HOST | IP or address of the host you want to forward traffic to | no |
DEF_/REMOTE_PORT | Port on remote host to forward traffic to | yes (80) |
DEF_/LOCAL_PORT | Port where container listens | yes (80) |