This is a Wordpress development environment with Docker and Docker Compose.
git clone https://github.com/ko31/wp-dev-docker.git <my-project-name>
cd <my-project-name>
docker-compose up -d
- Visit WordPress in your browser
http://localhost:8000
Create containers.
docker-compose up -d
Start containers.
docker-compose start
Stop containers.
docker-compose stop
Shutdown containers.
docker-compose down
Shutdown and cleanup containers.
docker-compose down -v
http://localhost:1080
http://localhost:8080
SSH into WordPress container.
./bin/shell.sh
Call WP-CLI command.
./bin/wp.sh <command>
# Display the WordPress version
./bin/wp.sh core version
Create database dump.
./bin/export.sh
Import database dump.
./bin/import.sh