添加 docker-compose.yaml

add docker compose
This commit is contained in:
wangzixiang 2024-06-04 16:01:24 +08:00
parent c56af71076
commit a637aa3894
1 changed files with 16 additions and 0 deletions

16
docker-compose.yaml Normal file
View File

@ -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: "本地监听地址"