|
@@ -15,7 +15,7 @@ services:
|
|
|
- mongodb
|
|
|
restart: unless-stopped # 添加自动重启策略
|
|
|
volumes:
|
|
|
- - /www/wwwroot/match-vote-nextjs/app/public/uploads:/app/public/uploads # 添加这行来挂载 uploads volume
|
|
|
+ - nextjs-uploads:/app/public/uploads # 添加这行来挂载 uploads volume
|
|
|
user: root
|
|
|
|
|
|
mongodb:
|
|
@@ -37,6 +37,7 @@ services:
|
|
|
|
|
|
volumes:
|
|
|
mongodb_data:
|
|
|
+ nextjs-uploads:
|
|
|
|
|
|
networks:
|
|
|
default:
|