Files
nas/README.md
T
wangjia d6692b8776 添加 Docker 服务配置文件
新增 forgejo、mihomo 透明代理的 docker-compose 和配置文件,
敏感凭证(runner token、VLESS UUID)通过 .env 管理不入库。
同步更新 CLAUDE.md 目录结构说明,新增 README.md。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 00:31:38 +08:00

48 lines
1003 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# NAS 运维配置
Synology DS925+192.168.3.200)的 Docker 服务配置管理。
## 服务
| 服务 | 说明 | 地址 |
|------|------|------|
| Forgejo | 自托管 Git 服务 + CI/CD runner | http://git.51yanmei.com |
| mihomo | 透明代理网关(VLESS + Reality | 局域网网关 192.168.3.200 |
| dnsmasq | DHCP/DNS(预备,暂未启用) | — |
## 目录
```
docker/
├── forgejo/ # Forgejo + act-runner
└── proxy/ # mihomo 透明代理 + dnsmasq
```
## 部署
### 前置条件
```bash
cp docker/forgejo/.env.example docker/forgejo/.env
# 填入 GITEA_RUNNER_REGISTRATION_TOKEN
cp docker/proxy/mihomo/.env.example docker/proxy/mihomo/.env
# 填入 VLESS_UUID(然后手动更新 config.yaml 中的 <VLESS_UUID>
```
### 启动服务
```bash
# Forgejo
cd docker/forgejo && docker compose up -d
# 透明代理
cd docker/proxy && docker compose up -d
```
## 连接
```bash
ssh nas # HostName 192.168.3.200,需配置 ~/.ssh/config
```