frp
version: "3"
services:
frps:
container_name: frps
hostname: frps
image: snowdreamtech/frps:latest
restart: on-failure:3
ports:
- 80:80
volumes:
- ./frps.ini:/etc/frp/frps.ini
network_mode: host
frps.ini
[common]
bind_port = 7100
# 启用面板
dashboard_port = 7101
# 面板登录名和密码
dashboard_user = wang
dashboard_pwd = wang978252321
# 使用http代理并使用8888端口进行穿透
vhost_http_port = 8888
# 使用https代理并使用9999端口进行穿透
vhost_https_port = 9999
# 日志路径
log_file = ./frps.log
# 日志级别
log_level = info
# 日志最大保存天数
log_max_days = 3
# 认证超时时间
authentication_timeout = 900
# 认证token,客户端需要和此对应
token=18656888661
# 最大连接数
max_pool_count = 100
max_ports_per_client = 0
NAME=frps
IMAGE=snowdreamtech/frps
docker stop $NAME
docker rm $NAME
docker run --restart=on-failure:3 --network host -v /home/docker/frp/frps.ini:/etc/frp/frps.ini -d --name $NAME $IMAGE
```shell
D:\soft\frp_0.43.0_windows_amd64\frpc.exe -c D:\soft\frp_0.43.0_windows_amd64\frpc.ini