Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Headless Wp Starter | 4,338 | 3 months ago | 52 | gpl-2.0 | JavaScript | |||||
🔪 WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step | ||||||||||
Lando | 3,758 | 8 days ago | 150 | gpl-3.0 | Shell | |||||
A development tool for all your projects that is fast, easy, powerful and liberating | ||||||||||
Docker Traefik | 2,029 | 8 days ago | 53 | mit | Shell | |||||
Docker media and home server stack with Docker Compose, Traefik, Swarm Mode, Google OAuth2/Authelia, and LetsEncrypt | ||||||||||
Easyengine | 2,013 | a month ago | 51 | August 15, 2022 | 108 | mit | PHP | |||
Command-line control panel for Nginx Server to manage WordPress sites running on Nginx, PHP, MySQL, and Let's Encrypt | ||||||||||
Ddev | 1,837 | a day ago | 128 | apache-2.0 | Go | |||||
Docker-based local PHP+Node.js web development environments | ||||||||||
Wordmove | 1,808 | 10 | 2 | a year ago | 101 | January 04, 2022 | 17 | mit | Ruby | |
Multi-stage command line deploy/mirroring and task runner for Wordpress | ||||||||||
Wordpress | 1,534 | 15 days ago | 15 | gpl-2.0 | Shell | |||||
Docker Official Image packaging for WordPress | ||||||||||
Wordpress Docker Compose | 1,512 | 4 months ago | 22 | mit | Shell | |||||
Easy Wordpress development with Docker and Docker Compose | ||||||||||
Wordpressify | 1,512 | 8 months ago | 79 | May 14, 2022 | 1 | mit | JavaScript | |||
🎈 Automate your WordPress development workflow. | ||||||||||
Gutenberg Examples | 1,088 | 3 months ago | 25 | JavaScript | ||||||
Examples for extending WordPress/Gutenberg with blocks. |
This is a Docker based local development environment for WordPress with Roots Bedrock.
This project is based on docker-compose. By default, the following containers are
started: PHP-FPM, MariaDB, Elasticsearch, nginx, and Memcached. The /site/web
directory is the web root which is
mapped to the nginx container. See Bedrock for more info.
You can directly edit PHP, nginx, and Elasticsearch configuration files from within the repo as they are mapped to the correct locations in containers.
A Dockerfile
is included for PHP-FPM (/dockerfiles/php-fpm/Dockerfile
). This adds a few extra things to the
PHP-FPM image.
The /config/elasticsearch/plugins
folder is mapped to the plugins folder in the Elasticsearch container. You can
drop Elasticsearch plugins in this folder to have them installed within the container.
git clone [email protected]:dwnload/wp-docker-bedrock.git <my-project-name>
cd <my-project-name>
docker-compose up
bash ./bin/setup.sh
to download Bedrock.Default MySQL connection information (from within PHP-FPM container):
Database: wordpress
Username: wordpress
Password: password
Host: mysql
Default Elasticsearch connection information (from within PHP-FPM container):
Host: http://elasticsearch:9200
Adding a docker-compose.override.yml
file alongside the docker-compose.yml
file, with contents similar to
the following, allows you to change the domain associated with the cluster while retaining the ability to pull in changes from the repo.
version: '2'
services:
phpfpm:
extra_hosts:
- "dashboard.dev:172.18.0.1"
Add this alias to ~/.bash_profile
to easily run WP-CLI command.
alias dcwp='docker-compose exec --user www-data phpfpm wp'
Instead of running a command like wp plugin install
you instead run dcwp plugin install
from anywhere inside the
<my-project-name>
directory, and it runs the command inside of the php container.
There is also a script in the /bin
directory that will allow you to execute WP CLI from the project directory directly: ./bin/wp plugin install
.
You can easily access the WordPress/PHP container with docker-compose exec
. Here's a simple alias to add to your ~/.bash_profile
:
alias dcbash='docker-compose exec --user root phpfpm bash'
This alias lets you run dcbash
to SSH into the PHP/WordPress container.
Alternatively, there is a script in the /bin
directory that allows you to SSH in to the environment from the project directory directly: ./bin/ssh
.
This project is our own flavor of an environment created by the 10up team based on work by John Bloch. Some additional code was used from easypath/bedrock-docker.