Files
FootPrint/sync-server/docker-compose.yml
T

19 lines
888 B
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.
# 通用独立部署:直接暴露宿主端口 8788(建议置于反代/内网之后)
# 若你的服务器上已有 Caddy 反代架构,请改用 docker-compose.caddy.yml
services:
footprints-sync:
build:
context: ..
dockerfile: sync-server/Dockerfile
container_name: footprints-sync
ports:
- "127.0.0.1:8788:8788" # 只绑定本机回环,交给反代;确认无反代时可改为 "8788:8788"
volumes:
- ./data:/data
environment:
- REGISTER_ENABLED=true # 注册自己的账号后改为 false,再 docker compose up -d
- INVITE_CODE=please-change-me # 多用户:注册须携带此邀请码(留空则不校验)
- MAX_USERS=20 # 用户数上限,0=不限
# - ADMIN_TOKEN=please-change-me # 设置后可用 GET /admin/users(请求头 X-Admin-Token)
restart: unless-stopped