部署:增加 docker-compose 与容器 nginx 配置,支持 docker 部署
This commit is contained in:
21
deploy/docker-compose.yml
Normal file
21
deploy/docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user