fix: remove bootstrap/cache bind mount from docker-compose

The bootstrap/cache volume mount causes stale service provider references
to persist across rebuilds. When a package is removed, the host's cached
packages.php/services.php still reference the old provider, causing
'Class not found' errors at container startup.

The AUTORUN_LARAVEL_*_CACHE env vars already handle cache regeneration
on each container start, making the bind mount unnecessary.
pull/6827/head
Your Name 4 weeks ago
parent 559db5d73e
commit f5d166a933

@ -70,7 +70,6 @@ services:
volumes:
- ./storage:/var/www/html/storage
- ./bootstrap/cache:/var/www/html/bootstrap/cache
depends_on:
- db
- redis
@ -101,7 +100,6 @@ services:
PHP_OPCACHE_ENABLE: "1"
volumes:
- ./storage:/var/www/html/storage
- ./bootstrap/cache:/var/www/html/bootstrap/cache
depends_on:
- db
- redis
@ -138,7 +136,6 @@ services:
PHP_OPCACHE_ENABLE: "1"
volumes:
- ./storage:/var/www/html/storage
- ./bootstrap/cache:/var/www/html/bootstrap/cache
depends_on:
- db
- redis

Loading…
Cancel
Save