配置信息
/frp/frpc.ini
[common]
server_addr = 47.109.91.139
server_port = 7000[ssh]
type = tcp
local_ip = 192.168.86.10
local_port = 22
remote_port = 6000[https]
type = tcp
local_ip = 192.168.86.10
local_port = 443
remote_port = 443[http]
type = tcp
local_ip = 192.168.86.10
local_port = 80
remote_port = 80[im-http]
type = tcp
local_ip = 192.168.86.10
local_port = 11001
remote_port = 11001[im-server-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10008
remote_port = 10008[im-ws-http]
name = "websocket"
type = tcp
local_ip = 192.168.86.10
local_port = 10001
remote_port = 10001[im-api-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10002
remote_port = 10002[im-10110-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10110
remote_port = 10110[im-10120-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10120
remote_port = 10120[im-10130-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10130
remote_port = 10130[im-10140-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10140
remote_port = 10140[im-10150-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10150
remote_port = 10150[im-10160-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10160
remote_port = 10160[im-10170-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10170
remote_port = 10170[im-10180-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10180
remote_port = 10180[im-10190-http]
type = tcp
local_ip = 192.168.86.10
local_port = 10190
remote_port = 10190[web-6752-http]
type = tcp
local_ip = 192.168.86.10
local_port = 6752
remote_port = 6752
docker 命令 因为端口映射 每次新增端口都需要删除 容器 重新 修改下面的脚本新增端口 运行建立容器
动态添加已运行容器的端口 还没有找到好的实现方案
docker run -it -p 7000:7000 -p 7500:7500 -p 10110:10110 -p 10120:10120 -p 10130:10130 -p 10140:10140 -p 10150:10150 -p 10160:10160 -p 10170:10170 -p 10180:10180 -p 10190:10190 -p 11001:11001 -p 11002:11002 -p 10008:10008 -p 80:80 -p 10001:10001 -p 10002:10002 -p 6752:6752 -d --name frps stilleshan/frps:latest