feat: 重构 Docker Compose 配置,移除旧文件并添加新的安装和配置文件

This commit is contained in:
2025-03-20 00:49:08 +08:00
parent 6b16d70f10
commit cda5a22823
25 changed files with 410 additions and 19 deletions

View 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
```

View 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