Add Docker deployment as the recommended production setup.

Include Dockerfile, docker-compose on port 3130, npm mirror config, deploy scripts, and DOCKER.md; keep PM2 docs as fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 21:13:12 +08:00
parent e44cdf913e
commit a1667eac51
10 changed files with 268 additions and 15 deletions
+16
View File
@@ -0,0 +1,16 @@
services:
zhimingge:
build:
context: .
dockerfile: Dockerfile
image: zhimingge:latest
container_name: zhimingge
restart: unless-stopped
ports:
- "3130:3130"
env_file:
- .env.local
environment:
NODE_ENV: production
PORT: "3130"
HOSTNAME: "0.0.0.0"