feat(docker): 添加 frpc 服务配置
- 新增 frpc 的 docker-compose 文件、配置文件和 README - 移除 list.yaml 中的 adguard filter_1.txt
This commit is contained in:
35
docker/compose/frpc/README.md
Normal file
35
docker/compose/frpc/README.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Frpc
|
||||
|
||||
## 下载配置
|
||||
|
||||
1. 创建一些文件夹
|
||||
|
||||
```bash
|
||||
mkdir -p /opt/docker/frpc/data/ssl && cd /opt/docker/frpc
|
||||
```
|
||||
|
||||
2. 下载 docker-compose.yml
|
||||
|
||||
```bash
|
||||
curl -fsSL https://i.sugarscat.cn/me/script/-/raw/main/docker/compose/frpc/docker-compose.yml > docker-compose.yml
|
||||
```
|
||||
|
||||
3. 下载配置
|
||||
|
||||
```bash
|
||||
curl -fsSL https://i.sugarscat.cn/me/script/-/raw/main/docker/compose/frpc/frpc.toml > data/frpc.toml
|
||||
```
|
||||
|
||||
## docker-compose 部署
|
||||
|
||||
1. 修改配置
|
||||
|
||||
```bash
|
||||
vim data/frpc.toml
|
||||
```
|
||||
|
||||
2. 启动
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
9
docker/compose/frpc/docker-compose.yml
Normal file
9
docker/compose/frpc/docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
frpc:
|
||||
container_name: frpc
|
||||
image: snowdreamtech/frpc:0.61.2
|
||||
network_mode: host
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/frpc.toml:/etc/frp/frpc.toml
|
||||
- ./data/ssl:/etc/frp/ssl
|
||||
13
docker/compose/frpc/frpc.toml
Normal file
13
docker/compose/frpc/frpc.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
# frps服务器地址
|
||||
serverAddr = "127.0.0.1"
|
||||
# frps服务器端口
|
||||
serverPort = 7000
|
||||
# frps服务器token
|
||||
token = "yourfrptoken"
|
||||
|
||||
[[proxies]]
|
||||
name = "tcp"
|
||||
type = "tcp"
|
||||
localIP = "127.0.0.1"
|
||||
localPort = 8000
|
||||
remotePort = 9876
|
||||
@@ -3,8 +3,6 @@
|
||||
- file: docker/install.sh
|
||||
source: https://raw.githubusercontent.com/docker/docker-install/master/install.sh
|
||||
# AdGuard
|
||||
#- file: adguard/filter_1.txt
|
||||
# source: https://adguardteam.github.io/HostlistsRegistry/assets/filter_1.txt
|
||||
- file: adguard/217heidai.txt
|
||||
source: https://raw.githubusercontent.com/217heidai/adblockfilters/main/rules/adblockdns.txt
|
||||
# acme.sh
|
||||
|
||||
Reference in New Issue
Block a user