services:
frps:
image: dockerhub16/frps
container_name: frps
restart: always
command: -c /frp/frps.toml
network_mode: host
volumes:
- ./frps.toml:/frp/frps.toml
frps.toml
#客户端和服务端建立连接的端口默认7000,建议修改
bindPort = 7000
#客户端和服务端建立连接的密码,建议修改
auth.token = "token"
# 默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。
webServer.addr = "0.0.0.0"
#网页端口
webServer.port = 7500
# dashboard 用户名密码,可选,默认为空
webServer.user = "admin"
webServer.password = "admin"
#复用端口
vhostHTTPPort = 8080
transport.maxPoolCount = 10 # 最大连接池数
transport.tcpMux = true # 启用 TCP 多路复用
Content type
Image
Digest
sha256:d08f1bd14…
Size
11.2 MB
Last updated
10 months ago
docker pull dockerhub16/frps