alexcdev1 5 mesiacov pred
rodič
commit
caa5f0aca3
1 zmenil súbory, kde vykonal 1 pridanie a 8 odobranie
  1. 1 8
      docker-compose.prod.yml

+ 1 - 8
docker-compose.prod.yml

@@ -13,18 +13,11 @@ services:
       - MONGODB_URI=mongodb://mongodb:27017/mydatabase
       - MONGODB_URI=mongodb://mongodb:27017/mydatabase
     depends_on:
     depends_on:
       - mongodb
       - mongodb
-      - init-uploads
     restart: unless-stopped  # 添加自动重启策略
     restart: unless-stopped  # 添加自动重启策略
     volumes:
     volumes:
       - nextjs-uploads:/app/public/uploads  # 添加这行来挂载 uploads volume
       - nextjs-uploads:/app/public/uploads  # 添加这行来挂载 uploads volume
-  
-  init-uploads:
-    image: alpine
-    volumes:
-      - nextjs-uploads:/uploads
-    command: chown -R 1001:1001 /uploads
     user: root
     user: root
-
+    
   mongodb:
   mongodb:
     image: mongo
     image: mongo
     volumes:
     volumes: