A script to setup an ExpressionEngine site with Docker and Docker Compose. I wrote and tested this on my MacBook....
- Docker
- Docker Compose
- Mysql client
- Not a requirement for setup since MySQL is running in a container, but the startup and dump scripts rely on mysql and mysqldump locally.
- I use brew for all things Mac related.
- clone repo
- To setup the inital project from terminal run:
./init.sh
- To download the database:
./data/dbdump.sh
- To inport the downloaded database on startup
./data/startup.sh
Because we are using docker to communicate between containers you must use the MySQL Host name output at the end of the script to configure ExpressionEngine.
- Clean up containers
docker rm -f $(docker container ls -qa)
- Clean up files
rm -rf downloads/ data/ public/ system/ build/docker-compose.yml