Skip to content

Commit ea8f233

Browse files
committed
update docker-compose.prod
1 parent 38cafc8 commit ea8f233

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker-compose.prod.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ services:
55
container_name: payload
66
ports:
77
- '3000:3000'
8+
volumes:
9+
# 将当前目录映射到容器的 /app
10+
- .:/app
11+
# 排除 node_modules,防止跨平台编译冲突
12+
- /app/node_modules
813
depends_on:
914
- postgres
1015
env_file:

0 commit comments

Comments
 (0)