Bootstrap Cache is not shared between the containers #637
lukasleitsch
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran a Laravel app with this Docker Compose file. One container (web) has the actual app with Autorun enabled. Autorun runs
artisan optimize. Only the web container benefits from the bootstrap cache in/var/www/html/bootstrap/cache. Thetaskandhorizoncontainers do not have this cache.The Health-Checks Package from Spatie runs checks via the scheduler, which runs in the task container. The check fails because that container has no bootstrap cache.
How do you solve this issue? My solution was to add a shared volume for the bootstrap cache folder. (See below)
With Bootstrap cache volume:
Beta Was this translation helpful? Give feedback.
All reactions