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

@@ -0,0 +1 @@
"use strict";(()=>{var e={};e.id=961,e.ids=[961],e.modules={399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},8678:e=>{e.exports=import("pg")},9444:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>u,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>d});var o=r(9303),a=r(8716),n=r(670),i=r(1609),p=e([i]);i=(p.then?(await p)():p)[0];let c=new o.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/stats/route",pathname:"/api/stats",filename:"route",bundlePath:"app/api/stats/route"},resolvedPagePath:"/Users/home/Projects/forumlify/app/api/stats/route.js",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:l,staticGenerationAsyncStorage:d,serverHooks:m}=c,h="/api/stats/route";function u(){return(0,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:d})}s()}catch(e){s(e)}})},1609:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{GET:()=>n});var o=r(4191),a=e([o]);async function n(){try{let[e,t]=await Promise.all([o.Z.query("SELECT COUNT(*) FROM posts"),o.Z.query("SELECT COUNT(*) FROM users")]);return Response.json({posts:parseInt(e.rows[0].count)||0,users:parseInt(t.rows[0].count)||0,topics:parseInt(e.rows[0].count)||0,online:Math.floor(20*Math.random())+5})}catch{return Response.json({error:"服务器错误"},{status:500})}}o=(a.then?(await a)():a)[0],s()}catch(e){s(e)}})},4191:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>p});var o=r(8678),a=e([o]);o=(a.then?(await a)():a)[0];let n=!!process.env.VERCEL||!!process.env.AWS_LAMBDA_FUNCTION_NAME||!!process.env.CF_PAGES,i=new o.Pool({connectionString:process.env.DATABASE_URL||"postgresql://forumlify:123456@localhost:5432/forumlify",...n?{max:1,idleTimeoutMillis:5e3,connectionTimeoutMillis:1e4,maxUses:7500}:{}}),p=n?i:globalThis.__forumlifyPool||i;s()}catch(e){s(e)}})},9303:(e,t,r)=>{e.exports=r(517)}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[948],()=>r(9444));module.exports=s})();