Docker Compose configuration generator for fast Wordpress Theme or plugin development.
More information about reasons behind Dockerpresso are presented in this blog post.
mkdir your-new-project cd your-new-project docker run --rm -v `pwd`:/project michaloo/dockerpresso vim docker-compose.yml bash dockerpresso init vim .env bash dockerpresso up
Open your Docker host name or ip in browser. Fresh Wordpress installation
with your plugin or theme mounted in
wp-content directory is ready
to work on!
In your project root directory execute:
docker run --rm -v `pwd`:/project michaloo/dockerpresso
It will generate following files in your project root:
/dockerpresso /docker-compose.yml /docker-compose.admin.yml
docker-compose.ymlcontains base Docker configuration for two services
docker-composer.admin.ymlcontains configuration for two additional one-time commands services
dockerpressois a bash script with simple shortcuts for most common commands.
docker-compose.yml to enable theme or plugin development.
After installation you can start with following command:
bash dockerpresso init
Which will download latest Wordpress installation and prepare it to work with
Docker Compose configuration.
It will also create another file
.env which will carry all configuration of
database and Wordpress. Please fill it (you will need to setup at least following vars:
MYSQL_ROOT_PASSWORD) and then run:
bash dockerpresso up
Which will start web and mysql services. After launching it you should be able to complete Wordpress installation process when opening in browser your Docker host name or ip.
Dockerpresso project base on following components:
michaloo/docker_wp-cli Docker image with WP-CLI tool installed which is a base image for dockerpresso. All download and maintenance commands are done by WP-CLI.
michaloo/wp-cli-environmentalize WP-CLI package which injects
wp-config.phpto make Wordpress to work on ENV variables set for docker containers.