Add Docker deploy for Caddy production at cyd.smallzhiyuns.com.

Standalone Next image, local firmware sync volume, and docs for the existing host-network Caddy reverse proxy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-19 20:41:08 +08:00
parent e2fa28e501
commit 2020f586d9
10 changed files with 102 additions and 11 deletions

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
services:
cydweb:
build:
context: .
args:
NEXT_PUBLIC_SITE_URL: https://cyd.smallzhiyuns.com
image: cydweb:latest
container_name: cydweb
restart: unless-stopped
ports:
- "127.0.0.1:3020:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_SITE_URL=https://cyd.smallzhiyuns.com
- CYD_FIRMWARE_ROOT=/app/firmware
volumes:
# Live-update firmwares without rebuild (host path populated by sync)
- ./firmware:/app/firmware:ro