This is a simple template that can be used to quickly spin up a WordPress site using Docker.
-
Clone the repo.
-
Create an .env file in the root directory with the following values:
CONTAINER_NAME=wordpress
HOST_PORT=3000
DB_PORT=3306
ROOT_PASSWORD=anyRootPassword
DATABASE_NAME=wordpress-db
USER=wpuser
PASSWORD=databasePassword
-
Run
docker-compose up -d
to start the containers. -
Open
http://localhost:3000
in your browser.