Here is a sample symfony project:
my_project:
assets:
src:
web:
package.json
composer.json
I have an apache container and a container with webpack that will be used to watch the assets folder and build it when something changes.
As both containers need access to the same filesystem, let's say I:
- Create a named volume
- Copy my_project in it using this technique
- Run some
composer install
andnpm install
commands
Once everything is ready, I need the apache container to share the src folder with the host and the webpack container to share the assets folder with the host.
That way, everytime I change a file in those folders, I would be able to see the result in my browser.
I saw that it's not possible for the moment to mount subdirectories so what other way is there?
Or am I thinking about it the wrong way?