alexcdev1 5 months ago
parent
commit
6f81a9cb2a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docker-compose.prod.yml

+ 2 - 1
docker-compose.prod.yml

@@ -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: