|
@@ -15,7 +15,6 @@ services:
|
|
|
- mongodb
|
|
|
restart: unless-stopped # 添加自动重启策略
|
|
|
volumes:
|
|
|
- # - nextjs-uploads:/app/public/uploads
|
|
|
- uploads_data:/app/public/uploads
|
|
|
|
|
|
mongodb:
|
|
@@ -32,7 +31,7 @@ services:
|
|
|
volumes:
|
|
|
- ./nginx:/etc/nginx/conf.d
|
|
|
- ./logs/nginx:/var/log/nginx
|
|
|
- - ./public/uploads:/app/public/uploads:ro
|
|
|
+ - uploads_data:/app/public/uploads:ro
|
|
|
depends_on:
|
|
|
- nextjs
|
|
|
restart: unless-stopped # 添加自动重启策略
|