This is a tiny ready to go boilerplate for a wordpress website running with Docker.
It uses the following libraries:
- MySQL https://github.com/docker-library/mysql
- Wordpress https://github.com/docker-library/wordpress
- PHPMyAdmin https://github.com/phpmyadmin/docker
- docker-rsync https://github.com/synack/docker-rsync
Access your page under http://0.0.0.0:8000 after installation.
Please install Docker: https://docs.docker.com/engine/installation/
Make sure that your current development workplace folder is available for mounting. Check this in your Docker Settings.
Clone the repository from Bitbucket and go into the project folder.
$ git clone [email protected]:zauberware/docker-wordpress-mysql-phpmyadmin.git
Like you see there is only the wp-content folder of wordpress and few Docker files. So we use Docker to run our website for development and we are syncing the wp-content folder to the wp-content folder on the Docker instance.
$ gem install docker-sync
Run the syncer before starting docker containers
$ docker-sync start
To stop or clean the syncer
$ docker-sync stop
$ docker-sync clean
Open new terminal window.
- Start docker in the docker desktop App
- run
docker-compose up
- wait for installation and check your running containers with
docker ps
. You should see wordpress, mysql and phpadmin as a container.
Page available: http://0.0.0.0:8000/ PHPMyAdmin available: http://0.0.0.0:8080/
Shut down your containers with
$ docker-compose down
This is just a starter template. If you want to learn more about Docker templates you should visit https://docs.docker.com/develop/ . We can also recommend this repository: https://github.com/webdevops/php-docker-boilerplate
- Simon Franzen (zauberware technologies)
- Lisa Schmitz (zauberware technologies)