fix: demo seed works with existing users (seed flag) + static INVITE_CODE registration path + mount backend src (zero-build updates)

This commit is contained in:
root
2026-10-16 18:31:42 +08:00
parent 03daa8acc4
commit 4cb7ccbf15
3 changed files with 24 additions and 14 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ services:
# 无需 ports 映射:Caddy 通过容器网络按服务名直连(footprints-sync:8788)
volumes:
- ./data:/data
- ./www:/app/www:ro # 前端直读仓库目录:git pull 即生效,无需重建镜像
- ./www:/app/www:ro # 前端直读仓库目录:git pull 即生效,无需重建镜像
- ./src:/app/src:ro # 后端源码直读(零依赖纯 .mjs)
- ./schema.sql:/app/schema.sql:ro
- ../app/server/db.mjs:/app/src/app-commands.mjs:ro # 命令层以仓库数据层为准
environment:
- REGISTER_ENABLED=true
- INVITE_CODE=please-change-me # 多用户:注册须携带此邀请码(留空则不校验)