alexcdev1 6 月之前
父節點
當前提交
67548f2d77
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      docker-compose.prod.yml

+ 1 - 5
docker-compose.prod.yml

@@ -14,10 +14,7 @@ services:
     depends_on:
       - mongodb
     restart: unless-stopped  # 添加自动重启策略
-    volumes:
-      - nextjs-uploads:/app/public/uploads  # 添加这行来挂载 uploads volume
-    user: root
-    
+
   mongodb:
     image: mongo
     volumes:
@@ -37,7 +34,6 @@ services:
 
 volumes:
   mongodb_data:
-  nextjs-uploads:
 
 networks:
   default: