From fee71b299ac58591bcdbfcddfe03f0aa65b8a95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=A1=E8=9B=8E?= Date: Wed, 4 Jun 2025 22:50:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(docker):=20=E6=B7=BB=E5=8A=A0=20frpc=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 frpc 的 docker-compose 文件、配置文件和 README - 移除 list.yaml 中的 adguard filter_1.txt --- docker/compose/frpc/README.md | 35 ++++++++++++++++++++++++++ docker/compose/frpc/docker-compose.yml | 9 +++++++ docker/compose/frpc/frpc.toml | 13 ++++++++++ list.yaml | 2 -- 4 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 docker/compose/frpc/README.md create mode 100644 docker/compose/frpc/docker-compose.yml create mode 100644 docker/compose/frpc/frpc.toml diff --git a/docker/compose/frpc/README.md b/docker/compose/frpc/README.md new file mode 100644 index 0000000..1df1c4d --- /dev/null +++ b/docker/compose/frpc/README.md @@ -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 + ``` diff --git a/docker/compose/frpc/docker-compose.yml b/docker/compose/frpc/docker-compose.yml new file mode 100644 index 0000000..0d89125 --- /dev/null +++ b/docker/compose/frpc/docker-compose.yml @@ -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 diff --git a/docker/compose/frpc/frpc.toml b/docker/compose/frpc/frpc.toml new file mode 100644 index 0000000..2027cba --- /dev/null +++ b/docker/compose/frpc/frpc.toml @@ -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 diff --git a/list.yaml b/list.yaml index 19975e3..4505d33 100644 --- a/list.yaml +++ b/list.yaml @@ -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