@@ -15,7 +15,7 @@ services:
- mongodb
restart: unless-stopped # 添加自动重启策略
volumes:
- - nextjs-uploads:/app/public/uploads # 添加这行来挂载 uploads volume
+ - /www/wwwroot/match-vote-nextjs/app/public/uploads:/app/public/uploads # 添加这行来挂载 uploads volume
mongodb:
image: mongo
@@ -36,7 +36,6 @@ services:
mongodb_data:
- nextjs-uploads:
networks:
default:
@@ -27,7 +27,7 @@ server {
}
location /uploads {
- alias /app/public/uploads;
+ alias /www/wwwroot/match-vote-nextjs/app/public/uploads;
expires 30d;
add_header Cache-Control "public, max-age=2592000";