Add Docker deployment and CI/CD configuration
Some checks failed
Deploy to Production / deploy (push) Has been cancelled

- Add Dockerfile for multi-stage build
- Add docker-compose.yml for easy deployment
- Add Gitea Actions CI/CD workflow
- Add deployment script (deploy.sh)
- Add nginx and supervisord configuration
- Add deployment documentation

Deployment target: 192.168.9.149:8080

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
你的用户名
2025-11-04 17:12:41 +08:00
parent 3e311d4d26
commit 4c2d2e3678
7 changed files with 490 additions and 0 deletions

20
docker/supervisord.conf Normal file
View File

@@ -0,0 +1,20 @@
[supervisord]
nodaemon=true
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
[program:nginx]
command=/usr/sbin/nginx -g 'daemon off;'
autostart=true
autorestart=true
stdout_logfile=/var/log/nginx/stdout.log
stderr_logfile=/var/log/nginx/stderr.log
[program:backend]
command=node /app/backend/dist/main.js
directory=/app/backend
autostart=true
autorestart=true
stdout_logfile=/var/log/backend/stdout.log
stderr_logfile=/var/log/backend/stderr.log
environment=NODE_ENV="production",PORT="3000"