Files
FootPrint/sync-server/docker-compose.caddy.yml
T
root 42ca57abfd feat: 足迹 Footprints 个人留痕系统
桌面应用(Tauri+React+SQLite):时间线/记录/学年学科成绩梯度/统计/类型与字段模板/附件内容寻址/详情视图/PWA

同步服务端(sync-server):多用户+邀请码/LWW推拉/seq游标/附件去重/Docker部署

多端同步地基:uuid v7/HLC混合逻辑时钟/软删除墓碑/sync_oplog,Node与Rust双端一致并通过自动化测试
2026-10-16 13:53:15 +08:00

27 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 与既有 Caddy 反代架构配合使用(推荐):
# 1. 把整个仓库上传到服务器(如 /opt/footprints)
# 2. Caddy 所在的 Docker 网络名已确认为 mynet(docker network ls)
# docker compose -f docker-compose.caddy.yml up -d --build
# 4. Caddyfile 增加反代块(见 README),重载 Caddy
# 5. 注册自己的账号后,把 REGISTER_ENABLED 改为 false 并重新 up -d
services:
footprints-sync:
build: .
container_name: footprints-sync
# 无需 ports 映射:Caddy 通过容器网络按服务名直连(footprints-sync:8788)
volumes:
- ./data:/data
environment:
- REGISTER_ENABLED=true
- INVITE_CODE=please-change-me # 多用户:注册须携带此邀请码(留空则不校验)
- MAX_USERS=20 # 用户数上限,0=不限
# - ADMIN_TOKEN=please-change-me # 设置后可用 GET /admin/users(请求头 X-Admin-Token)
restart: unless-stopped
networks:
- proxy
networks:
proxy:
name: mynet # 服务器上已确认的 Caddy 共享网络
external: true