Quickstart: Compose and WordPress
Quickstart: Docker Compose and WordPress
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, you’ll need to have Compose installed.
Define the project
-
Create an empty project directory.
You can name the directory something easy for you to remember. This directory is the context for your application image. The directory should only contain resources to build that image.
This project directory will contain a
Dockerfile
, adocker-compose.yaml
file, along with a downloadedwordpress
directory and a customwp-config.php
, all of which you will create in the following steps. -
Change directori