ci: GHCR docker build for Lite branch + compose updates

- .github/workflows/docker-lite.yml: build & push ghcr.io/lezi-fun/
  forumlify-deploy:lite on Lite branch push (linux/amd64+arm64)
- docker-compose.yml: pull :lite image from GHCR, add PORT / ENABLE_
  CAPTCHA env, restart: unless-stopped on both services
This commit is contained in:
lezi-fun committed 2026-08-12 09:21:12 +08:00
1 parent 8f88f803f5
commit 9e407d0a2d
1532 files changed
+645187 -1

No files matched your search

+6 -1
View File
@@ -11,17 +11,22 @@ services:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
app:
build: .
# 从 GHCR 拉取镜像(每次 push Lite 自动重建),不再本地构建
image: ghcr.io/lezi-fun/forumlify-deploy:lite
ports:
- "3000:3000"
depends_on:
- db
environment:
DATABASE_URL: postgresql://forumlify:123456@db:5432/forumlify
PORT: 3000
ENABLE_CAPTCHA: "true"
volumes:
- ./uploads:/app/uploads
restart: unless-stopped
volumes:
db_data: