A development docker for every wordpress project
- Build for wordpress and has cli tools
- Bundle of fpm,cli,nginx,mariadb,phpmyadminandrediscontainers
- PHP 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0 and 8.1 supported
- Database mariadb 10.x, mongodb 4.x ... supported
- Node 14.x, 16.x, 17.x, 18.x, ... supported
- Included wp, composer and node cli
- Support for PhpStorm or VSCode + WSL2/docker-desktop setup
- Support for xdebug included check .envfile
- git clone https://github.com/readymadehost/wordpress-dev-docker.git project-docker
- cd project-docker
- mkdir projector- git clone <some_git_repo_url> projectfor existing project
- cp .env.sample .envand review- .envfile
- docker-compose build
- docker-compose up -d
- docker-compose exec cli bash
- wp --allow-root config listfor config list
- Download zip from official website and put wp code inside project dir
- Follow gui wordpress install
- Project URL: http://{localhost/any_valid_host}:8080/
- PhpMyAdmin URL: http://{localhost/any_valid_host}:8180/
- For more info and change, check .envanddocker-compose.yml
- Manage permission inside container using bash alias mppor/root/manage-project-permission.sh
- Mariadb default:- host: mariadbuser:root, password:root, database_name:project
- <docker_root_dir> <-- docker root dir
- <docker_root_dir>/data <-- all docker data persist
- <docker_root_dir>/nginx <-- nginx
- <docker_root_dir>/php* <-- php cli and fpm containers
- <docker_root_dir>/.env <-- docker environment configuration
- <docker_root_dir>/project <-- project root dir
- <docker_root_dir>/project* <-- added in .gitignore
- <docker_root_dir>/*.sql <-- added in .gitignore
Simply add remote docker php cli interpreter, change path mapping and configure remote interpreter everywhere.
With vscode's remote container extension, we can simply connect into cli container.
- readymadehost/wordpress-dev-docker-php{PHP_VERSION}-cli:latest
- readymadehost/wordpress-dev-docker-php{PHP_VERSION}-fpm:latest
- 
Easy installation of PHP extensions in official PHP Docker images 
- 
MailCatcher 
- 
ReadyMadeHost docker hub