docker-compose.yml
version: "3"
services:
server:
image: snowdreamtech/frps
volumes:
- "./frps.toml:/etc/frp/frps.toml"
restart: always
network_mode: host
frps.toml
bindPort = 7000
vhostHTTPPort = 7080
vhostHTTPSPort = 7443
auth.method = "token"
auth.token = "密码"
subDomainHost = "xxx.com"
frpc.toml
serverAddr = "服务器地址"
serverPort = 7000
auth.method = "token"
auth.token = "密码"
[[proxies]]
name = "dev"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8080
remotePort = 7180