部署:增加 docker-compose 与容器 nginx 配置,支持 docker 部署

This commit is contained in:
2025-08-23 17:15:00 +08:00
parent e24c5595a5
commit f43aa5e35f
3 changed files with 47 additions and 1 deletions

21
deploy/docker-compose.yml Normal file
View File

@@ -0,0 +1,21 @@
version: '3.8'
services:
backend:
build:
context: .
dockerfile: deploy/Dockerfile.backend
ports:
- "4000:4000"
restart: always
environment:
- NODE_ENV=production
frontend:
build:
context: .
dockerfile: deploy/Dockerfile.frontend
ports:
- "8443:8443"
restart: always
depends_on:
- backend