alexcdev1 5 months ago
parent
commit
943cf50ff2
1 changed files with 3 additions and 4 deletions
  1. 3 4
      docker-compose.prod.yml

+ 3 - 4
docker-compose.prod.yml

@@ -14,9 +14,8 @@ services:
     depends_on:
       - mongodb
     restart: unless-stopped  # 添加自动重启策略
-    volumes:
-      - nextjs-uploads:/app/public/uploads
-    user: root
+    # volumes:
+    #   - nextjs-uploads:/app/public/uploads
     
   mongodb:
     image: mongo
@@ -37,7 +36,7 @@ services:
 
 volumes:
   mongodb_data:
-  nextjs-uploads:
+  # nextjs-uploads:
 
 networks:
   default: