feat: 重构 Docker Compose 配置,移除旧文件并添加新的安装和配置文件
This commit is contained in:
21
docker/docker-compose/clash/README.md
Normal file
21
docker/docker-compose/clash/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Clash
|
||||
|
||||
创建一些文件夹
|
||||
|
||||
```bash
|
||||
mkdir -p /opt/docker/clash && mkdir -p /opt/docker/clash/data && cd /opt/docker/clash
|
||||
```
|
||||
|
||||
**请在 `data` 文件夹下创建 `config.yaml` 文件**
|
||||
|
||||
下载 docker-compose.yml
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/docker-compose/docker-compose.yml > docker-compose.yml
|
||||
```
|
||||
|
||||
启动
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
12
docker/docker-compose/clash/docker-compose.yml
Normal file
12
docker/docker-compose/clash/docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
clash:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/37/clash:latest
|
||||
container_name: clash
|
||||
restart: always
|
||||
network_mode: bridge
|
||||
ports:
|
||||
- "7890:7890/tcp"
|
||||
- "7890:7890/udp"
|
||||
- "9090:9090"
|
||||
volumes:
|
||||
- ./data/config.yaml:/root/.config/clash/config.yaml
|
||||
Reference in New Issue
Block a user