Fix storage: use bind mount instead of named volume so nginx serves files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 16:58:22 +05:00
parent 9aeb9a7b8a
commit 855b6d542b
3 changed files with 2 additions and 5 deletions

4
.gitignore vendored
View File

@@ -8,7 +8,6 @@ bootstrap/compiled.php
app/storage/
# Laravel 5 & Lumen specific
public/storage
public/hot
# Laravel 5 & Lumen specific with changed public path
@@ -24,8 +23,9 @@ Homestead.json
composer.lock
package-lock.json
/.idea
/storage/
/storage/logs/
/storage/framework/
/storage/app/private/
/.vscode/
/public/images/
/postgres/

View File

@@ -9,7 +9,6 @@ services:
restart: always
volumes:
- ./:/var/www
- storage_data:/var/www/storage/app/public
depends_on:
- db
web:
@@ -18,7 +17,6 @@ services:
restart: always
volumes:
- ./:/var/www
- storage_data:/var/www/storage/app/public
- ./_docker/nginx/conf.d:/etc/nginx/conf.d
ports:
- "8005:80"
@@ -39,4 +37,3 @@ services:
volumes:
postgres_data:
storage_data:

View File