A clean and flexible docker environment for your wordpress project.
- Webserver: php:7.2-apache
- Database: mysql + phpmyadmin
- Cache: redis
- Debug: xdebug
- Wordpress project: Use an existing wordpress instance or just download it here.
-
Install docker
-
Clone wordpress-docker into your project directory:
git clone https://github.com/murcoder/wordpress-docker.git
-
Build container: Navigate into your project directory, build and start the docker container:
docker-compose build
docker-compose up -d
-
Ready! Visit localhost::8080 and follow the instructions
It's quite easy to change the basic setup by accessing the dockerfile or the yml file:
- app.dockerfile: Change PHP Version, webserver and apt packages here.
- mysql: Check docker-compose.yml::mysql