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