version: "3" services: sshforwarding: image: sshforwarding container_name: sshforwarding ports: - "0.0.0.0:3307:3307" volumes: - .ssh:/root/.ssh environment: # 远程服务器用户名 REMOTE_USER: # 远程服务器主机名 REMOTE_HOST: # 远程服务器SSH端口 REMOTE_PORT: # 需要转发的服务器端口 REMOTE_LISTEN_PORT: # 本地监听端口 LOCAL_LISTEN_PORT: # 本地监听地址 LOCAL_LISTEN_HOST: