feat: 添加 Docker 部署支持
- Dockerfile (多阶段构建,生产优化) - 基于 node:18-alpine - 非 root 用户运行(安全) - 健康检查配置 - docker-compose.yml - 一键部署配置 - 网络隔离 - 自动重启策略 - .dockerignore - 排除不必要文件 - 优化镜像大小 - .env.example - 环境变量模板 - 更新 README.md - Docker 部署文档 - 常用命令示例 - 生产环境配置
This commit is contained in:
11
.env.example
Normal file
11
.env.example
Normal file
@@ -0,0 +1,11 @@
|
||||
# 环境变量配置
|
||||
# 复制此文件为 .env 并根据需要修改
|
||||
|
||||
# 服务端口
|
||||
PORT=3000
|
||||
|
||||
# 运行环境
|
||||
NODE_ENV=production
|
||||
|
||||
# Docker 网络配置(可选)
|
||||
# DOCKER_NETWORK=ip-network
|
||||
Reference in New Issue
Block a user