Development Setup for Bedrock Wordpress based on Docker
MIT License
This project is no longer maintained as we developed docker-mate as a successor, which supports more PHP based sytems other than Wordpress, local SSL and is overall more extensible and improved. I'd highly suggest having a look at the docker-mate repo and the docs.
Easy-to-use Docker setup for local development of Bedrock based Wordpress projects
please note that this is intended for local development - deploying it to production is probably a bad idea
.docker
domains to 127.0.0.1
docker
& docker-compose
.docker
domains to 127.0.0.1
git clone https://github.com/schliflo/bedrock-docker.git your-project
cd your-project
PROJECT_NAME=bedrock
in the Makefile to your projects name (use kebap-case as this is also used for your local development domain)make up
and follow the instructionsRun make up
to start everything
Run make stop
to stop everything
Run make restart
to - you probably guessed it - restart everything
Run make rebuild
to rebuild the project from the ground (current database will be lost if not backed up)
Bedrock Docker abstracts composer into a container. You can use make composer
like you would use composer
standalone:
# install a wordpress plugin:
make composer require wpackagist-plugin/wp-mail-smtp
# update wordpress & plugins:
make composer update
Run make mysql-backup
creates a compressed backup of your database in the backup folder. If you need a more fine grained backup you can use phpMyAdmin
Use phpMyAdmin to restore the database or use make mysql-restore
if you created a backup previously
Run make upgrade
Run make logs
or make logs app
for just the logs of all or specific containers
Run make state
to see the current state of your containers
Run make urls
to see the URLs of the project
Run make ssh app
or make logs web
to access the specific containers
Run make destroy
Open an issue over here
Feedback is generally appreciated ;)