Since last week I have a kinda working Docker + Sage 8 setup that starts the dev environment with just one command
docker-compose up (everything works except BrowserSync).
And now I want to create the same setup for Sage 9, because last time I installed Sage 9 locally all my Sage 8 websites wouldn’t start anymore, so I like to run them in a VM like Docker.
I copied the setup from Sage 8 and modified it to run with Sage 9, it is working except it is not showing the CSS changes when I edit them, the changes are only visible when I destroy and rerun the containers again.
Is anyone doing something similar like this and would like to share their setup?
For anyone interested here are the GitHub repo’s for all the necessary containers to run inside Docker, they are far from perfect, but it took me a lot of trial and error to get here:
- Docker + Sage 8 — keeps database, exposes the theme (alloy-sage), plugins and uploads. Missing BrowserSync | https://github.com/mvaneijgen/docker-wordpress-with-gulp
- Docker + Sage 9 — keeps database, exposes the theme (alloy-sage), plugins and uploads. Missing seeing changes while Docker is running and changing them and BrowserSync | https://github.com/mvaneijgen/Docker-Sage9
What I still have to figure out is having Docker run with a argument so it runs the production environment.
Again I want to have a setup so that I can invite anyone to help me work on a project, so that they only have to rung
docker-compose up and don’t have to worry about having the correct environment setup on there machine, the only thing they have to worry about is how to write PHP, CSS and JS