A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
352
直接从 官方 github 下载 release 包构建,不作任何修改。
frps,frpc 同一个镜像
docker-compose.yml
version: "2.2"
services:
frps:
image: pocketdigi/frp:0.48.0
ports:
- "7000:7000"
- "7001:7001"
- "7002:80"
- "7003:443"
- "7004:7500"
- "2000-2100:2000-2100"
volumes:
- ./frps.ini:/usr/local/frp/frps.ini
restart: on-failure
cpu_count: 1
mem_limit: 256m
映射端口自己根据frps.ini配置文件修改
同目录下放frps.ini:
[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
dashboard_tls_mode = false
authentication_method = token
token = 12345678
allow_ports = 2000-2100
subdomain_host = dev.example.com
docker-compose.yml:
version: "2.2"
services:
frpc:
image: pocketdigi/frp:0.48.0
volumes:
- ./frpc.ini:/usr/local/frp/frpc.ini
restart: on-failure
cpu_count: 1
mem_limit: 256m
command: ./frpc -c frpc.ini
同目录下放 frpc.ini
[common]
server_addr = dev.example.com
server_port = 7000
log_file = ./frpc.log
log_level = info
log_max_days = 3
token = 12345678
[web]
type = http
local_ip = 192.168.1.188
local_port = 8000
use_encryption = false
use_compression = false
subdomain = console
Content type
Image
Digest
sha256:89b5a77b4…
Size
13.2 MB
Last updated
over 3 years ago
docker pull pocketdigi/frp:0.48.0