Note that this is ment to be used as a development environment only, there are poor cleartext passwords definded in various files that should be changed and preferably stored in environment variables that makes this unfit for a production environment.
Docker-compose is setup for development on this project. So the only software you need setup locally is:
- Docker
- Docker-compose
In you hosts file add:
127.0.0.1 wordpress.dev
Run in root of repo:
$ docker-compose up
To save everything in the db to an sql file, run the supplied script. (you might want to change the name of the conatiner in the script)
$ ./dumpDb.sh
This will create/overwrite the file "db/database-dump.sql", And if this file is present when first runing docker-compose on a new system it will be parsed by the db container. Making it usefull for keeping db changes in git. (Another reason to only use this as a development environment). You can also force a db rebuild by running:
$ docker-compose down
$ docker-compose rm -v
$ docker-compose up
Depending on you OS the folders created by docker might be write protected, you can revert this with:
$ chown -R username:group .