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:
https://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:
https://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.