Hey guys, I’m completely new to Sage/Bedrock and pretty much to the whole composer thing. Just started Docker earlier this year so please excuse the messy Dockerfile/config files. I like the whole setup of Sage/Bedrock so I thought I’d give it a try. I’m looking for Sage veterans to see if my setup is a viable environment for development.
The Stack
- alpine 3.10.x
- traefik 2.x (reverse proxy)
- code-server v2 beta
- wordpress 5.2.x
- nginx 1.17.x
- php 7.3.x
- mariadb 10.3.x
- phpmyadmin 4.9.x
- wp-cli 2.3.x
I’ve done some light testing but so far JS changes does not reload the entire browser, CSS injects like it should, and PHP files reloads the browser. This setup was configured for a VPS with https as the default protocol because there should be no reason for you not to use https on a public server. This docker-compose.yml sets up the following URLs:
- Traefik dashboard - https://traefik.domain.tld
- WordPress - https://domain.tld
- code-server - https://domain.tld/demyx-cs/
- BrowserSync - https://domain.tld/demyx-bs/
- phpMyAdmin - https://domain.tld/demyx-pma/
This docker-compose.yml file is pretty much “turnkey,” all you gotta do is replace the domain.tld, emails, credentials, and make sure ports 80/443 are open on your VPS. When you do a docker-compose up -d
, the container will start the init process of installing WordPress, Bedrock, and then Sage (web/app/themes/sage). wp-cli will auto install WordPress based on the environment variables. The whole process should take under 10 seconds, due to Sage being a whopping 400mb~ when extracted.
I appreciate some feedback, thank you!
GitHub: https://github.com/demyxco/code-server/tree/master/tag-sage
https://github.com/demyxco/code-server/blob/master/tag-sage/docker-compose.yml