|
@@ -16,7 +16,7 @@ services:
|
|
|
restart: unless-stopped # 添加自动重启策略
|
|
|
volumes:
|
|
|
# - nextjs-uploads:/app/public/uploads
|
|
|
- - ./public/uploads:/app/public/uploads:rw,z
|
|
|
+ - uploads_data:/app/public/uploads
|
|
|
|
|
|
mongodb:
|
|
|
image: mongo
|
|
@@ -38,7 +38,7 @@ services:
|
|
|
|
|
|
volumes:
|
|
|
mongodb_data:
|
|
|
- # nextjs-uploads:
|
|
|
+ uploads_data:
|
|
|
|
|
|
networks:
|
|
|
default:
|