frp搭建和使用 server docker-compose.yaml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 version: "3" services: frps: container\_name: frps image: snowdreamtech/frps:0.56.0 network\_mode: host volumes: - ./frps.toml:/etc/frp/frps.toml frps.toml 1 bindPort = 17000 client docker-compose.yaml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 version: "3" services: frpc: container\_name: frpc image: snowdreamtech/frpc:0.56.0 network\_mode: host volumes: - ./frpc.toml:/etc/frp/frpc.toml restart: always frpc.toml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [common] server_addr = ip server_port = 17000 #tls_enable = true #kcp_bind_port = 17000 #protocol = kcp token = 密码 [sshx] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 12222