Open GLips opened 6 years ago
I've added the following to my docker-compose.yml
, which works for the time being but feels a bit wrong:
volumes:
- elc-sync:/var/www/html:nocopy
- ./src/pub/media:/var/www/html/pub/media # Added this to mount media as a volume without using docker-sync.
- ~/.composer:/var/www/.composer
- ~/.npm:/var/www/.npm
On the
mac
branch, the docker-sync.yml explicitly ignorespub/media/*
. That's causing all media files to be invisible to the apache container, and therefore they can't be served on my development site. I see that was done to prevent too many files from syncing constantly, but what's the workaround to get media images loading?