Author SHA1 Message Date

2026-08-14

lezi-fun dafd1a53a5 feat: update app container after image pull 2026-08-14 17:06:04 +08:00
lezi e198a5c6c0 Merge pull request #28 from forumlify/feat/forum-settings-uploads-motion
feat: refine forum settings, uploads, and transitions
2026-08-14 10:48:24 +08:00
lezi ba49a3ad9f Merge pull request #27 from forumlify/docs/readme-forumlify-org
docs: update repository links to forumlify/public
2026-08-14 10:19:19 +08:00
lezi-fun 6202d89e26 fix: update cd command to match new clone directory name 2026-08-14 09:48:50 +08:00
lezi-fun 59edccac45 fix: update docker image reference to forumlify/public 2026-08-14 09:44:05 +08:00
lezi-fun a4b2e47bb2 docs: update repository links to forumlify/public 2026-08-14 09:43:06 +08:00
3 changed files with 35 additions and 11 deletions

No files matched your search

+9 -10
View File
@@ -40,21 +40,20 @@ Forumlify 提供了两个不同架构的分支版本,以满足不同部署环
```bash ```bash
# 本分支(NEXT 版);如要部署 LITE 版请 clone main 分支 # 本分支(NEXT 版);如要部署 LITE 版请 clone main 分支
git clone -b next https://github.com/furrium/forumlify.git git clone -b next https://github.com/forumlify/public.git
cd forumlify cd public
docker-compose up -d docker-compose up -d
``` ```
应用默认运行在 `http://localhost:3000`(监听 `0.0.0.0`,局域网可访问)。 应用默认运行在 `http://localhost:3000`(监听 `0.0.0.0`,局域网可访问)。
##Docker更新 ## Docker 更新
```bash
./scripts/update-docker.sh
``` ```
# 拉取最新镜像
docker pull ghcr.io/furrium/forumlify:next 更新脚本兼容 Docker Compose v2(`docker compose`)和 v1(`docker-compose`)。它会先拉取最新的 `app` 镜像,再让 Compose 在镜像发生变化时重新创建应用容器;数据库容器和数据卷不会重建。
# 重启
docker compose down && docker compose up -d
```
--- ---
@@ -77,8 +76,8 @@ docker compose down && docker compose up -d
```bash ```bash
# 克隆 next 分支(Next.js 版);main 分支是 Express 版 # 克隆 next 分支(Next.js 版);main 分支是 Express 版
git clone -b next https://github.com/furrium/forumlify.git git clone -b next https://github.com/forumlify/public.git
cd forumlify cd public
npm install npm install
``` ```
+1 -1
View File
@@ -10,7 +10,7 @@ services:
- db_data:/var/lib/postgresql/data - db_data:/var/lib/postgresql/data
app: app:
# 从 GHCR 拉取镜像(每次 push next 自动重建),不再本地构建 # 从 GHCR 拉取镜像(每次 push next 自动重建),不再本地构建
image: ghcr.io/furrium/forumlify:next image: ghcr.io/forumlify/public:next
ports: ports:
- "${FORUMLIFY_PORT:-3000}:3000" - "${FORUMLIFY_PORT:-3000}:3000"
depends_on: depends_on:
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -Eeuo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$PROJECT_ROOT"
if docker compose version >/dev/null 2>&1; then
compose=(docker compose)
elif command -v docker-compose >/dev/null 2>&1; then
compose=(docker-compose)
else
echo "Docker Compose is required (docker compose or docker-compose)." >&2
exit 1
fi
echo "Pulling the latest Forumlify image..."
"${compose[@]}" pull app
echo "Applying the latest image to the Forumlify app container..."
"${compose[@]}" up -d --no-deps app
echo "Forumlify is now running with the latest image."
"${compose[@]}" ps app