架构: 添加docker-compose配置
This commit is contained in:
parent
76e1d33cd9
commit
3099999db9
12
backend/docker-compose.yml
Normal file
12
backend/docker-compose.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
backend:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
volumes:
|
||||||
|
- ./data:/app/data
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
- JWT_SECRET=your-secret-key
|
||||||
Loading…
Reference in New Issue
Block a user