2024-06-04 16:01:24 +08:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
sshforwarding:
|
|
|
|
image: sshforwarding
|
|
|
|
container_name: sshforwarding
|
|
|
|
ports:
|
|
|
|
- "0.0.0.0:3307:3307"
|
|
|
|
volumes:
|
2024-06-04 17:21:34 +08:00
|
|
|
- .ssh:/root/.ssh
|
2024-06-04 16:01:24 +08:00
|
|
|
environment:
|
2024-06-04 16:02:43 +08:00
|
|
|
# 远程服务器用户名
|
|
|
|
REMOTE_USER:
|
|
|
|
# 远程服务器主机名
|
|
|
|
REMOTE_HOST:
|
|
|
|
# 远程服务器SSH端口
|
|
|
|
REMOTE_PORT:
|
|
|
|
# 需要转发的服务器端口
|
|
|
|
REMOTE_LISTEN_PORT:
|
|
|
|
# 本地监听端口
|
|
|
|
LOCAL_LISTEN_PORT:
|
|
|
|
# 本地监听地址
|
|
|
|
LOCAL_LISTEN_HOST:
|