Skip to content

cloverzrg/frps-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 

Repository files navigation

frps-docker

Latest Version Docker Stars Docker Pulls

Build Status:

Build Status

Dockerfile.

https://github.com/cloverzrg/frps-docker

USAGE

1. use host network

docker run -d --name frp-server --net=host -v /var/docker/frps/conf/frps.ini:/conf/frps.ini --restart=always cloverzrg/frps-docker

2. expose port

docker run -d --name frp-server -p <HOST_PORT>:<CONTAINER_PORT> -v <ABSOLUTE_PATH>/conf:/conf --restart=always cloverzrg/frps-docker

EXAMPLE

# vi /root/conf/frps.ini
[common]
bind_port = 7700
token = aNolEYwREgOD
vhost_http_port = 8080
vhost_https_port = 8443

dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = aNolEYwREgOD1


tcp_mux = true
max_pool_count = 10
docker run -d --name frp-server -p 7700:7700 -p 8080:8080 -p 7500:7500 -v /root/conf:/conf --restart=always cloverzrg/frps-docker
# frpc.ini
[common]
server_addr = xxx.xxx.xxx.xxx
server_port = 7700
token = aNolEYwREgOD

[xx-admin-web]
type = http
local_port = 80
use_encryption = true
use_compression = true
custom_domains = xx.example.com
http_user = admin
http_pwd = bauJUnGEhuRn