- git
- npm
- Docker or Docker Desktop
- Clone this repository from GitHub onto your computer
- Open a command-line and navigate to the directory of the cloned repository
- Ensure npm has all installed dependencies and run:
npm i
- Run the project's build script:
npm run build
- Run this command to copy the environment variables file:
cp .env.sample .env
- Run this command to copy the Docker configuration file:
cp docker-compose.yml.sample docker-compose.yml
- Optionally, uncomment the code in
docker-compose.yml
to enable a persistent database
- If using Docker Desktop, open it
- Run this command
docker-compose up --detach
Edit wp-config.php
to include
//define( 'WP_DEBUG', !!getenv_docker('WORDPRESS_DEBUG', '') );
define( 'WP_DEBUG', true);
//
define( 'WP_DEBUG_LOG', true );
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );
define( 'WP_DEBUG_DISPLAY', true );
-
Copy the sample .env file (edit as needed).
cp .env.sample .env
-
Copy the sample docker-compose.yml file (edit as needed).
cp .docker-compose.yml.sample .docker-compose.yml
-
Launch the wordpress containers.
docker compose up -d
-
Log into the WP instance (
localhost:8000
) and complete the installation. -
Go to the Admin page and activate the plugin.
-
To shut down the docker instance run:
docker compose down