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/ app/storage/
# Laravel 5 & Lumen specific # Laravel 5 & Lumen specific
public/storage
public/hot public/hot
# Laravel 5 & Lumen specific with changed public path # Laravel 5 & Lumen specific with changed public path
@@ -24,8 +23,9 @@ Homestead.json
composer.lock composer.lock
package-lock.json package-lock.json
/.idea /.idea
/storage/
/storage/logs/ /storage/logs/
/storage/framework/
/storage/app/private/
/.vscode/ /.vscode/
/public/images/ /public/images/
/postgres/ /postgres/

View File

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

View File