parent
c56af71076
commit
a637aa3894
|
@ -0,0 +1,16 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
sshforwarding:
|
||||||
|
image: sshforwarding
|
||||||
|
container_name: sshforwarding
|
||||||
|
ports:
|
||||||
|
- "0.0.0.0:3307:3307"
|
||||||
|
volumes:
|
||||||
|
- .ssh:/root/ssh:ro
|
||||||
|
environment:
|
||||||
|
REMOTE_USER: 远程服务器用户名
|
||||||
|
REMOTE_HOST: 远程服务器主机名
|
||||||
|
REMOTE_PORT: 远程服务器SSH端口
|
||||||
|
REMOTE_LISTEN_PORT: 需要转发的服务器端口
|
||||||
|
LOCAL_LISTEN_PORT: 本地监听端口
|
||||||
|
LOCAL_LISTEN_HOST: "本地监听地址"
|
Loading…
Reference in New Issue