DEV Community

Discussion on: Speed up Laravel in Docker by moving vendor directory

Collapse
 
gavincs profile image
Gavin Schreiber

I had painfully slow response test for a large php application as well as laravel apps.

Setting my working_dir to be cached solved this issue.

Eg (docker-compose) :
working_dir: /var/www
volumes:

  • ./:/var/www:cached
Collapse
 
tylerlwsmith profile image
Tyler Smith

Thanks for the tip, Gavin! I'll have to give this a shot.