You can use Docker Compose to easily run WordPress in an isolated environment built with Docker containers. This quick-start guide demonstrates how to use Compose to set up and run WordPress. Before starting, make sure you have Compose installed.
- Create directory where you want to clone repository
mkdir yourproject && cd yourproject
- Clone the repo on directory
git clone https://github.com/kutia-software-company/wordpress-with-docker.git .
- Copy from environment example to environment
cp .env.example .env
- Run docker compose
docker-compose up -d --build
open in browser:
http://locahost:8000
Inside src folder you can see wordpress contents here you can work your plugin or theme
if you want to access in phpmyadmin:
http://localhost:8181/
username: wordpress
password: wordpress
you can change all information in .env file
The command docker-compose down
removes the containers and default network, but preserves your WordPress database.
The command docker-compose down --volumes
removes the containers, default network, and the WordPress database.