script: update version management

This commit is contained in:
Acbox
2026-03-07 19:18:13 +08:00
parent 99114d2521
commit 0ca3d35fa0
4 changed files with 95 additions and 112 deletions
+10 -5
View File
@@ -48,11 +48,16 @@ cd Memoh
sudo docker compose up -d
```
> 若镜像拉取较慢,可使用中国大陆镜像源配置:
```bash
sudo docker compose -f docker-compose.yml -f docker/docker-compose.cn.yml up -d
```
> **安装指定版本:**
> ```bash
> MEMOH_VERSION=v1.0.0 curl -fsSL https://memoh.sh | sudo sh
> ```
>
> **使用中国大陆镜像加速:**
> ```bash
> USE_CN_MIRROR=true curl -fsSL https://memoh.sh | sudo sh
> ```
>
> macOS 或用户已在 `docker` 用户组中时,无需 `sudo`。
启动后访问 <http://localhost:8082>。默认登录:`admin` / `admin123`