WordPress and Compose
Learn the configurations needed for Compose to launch WordPress.
We'll cover the following...
We'll cover the following...
Docker Compose configuration
A WordPress project directory named wordpress is a good choice to have our WordPress-related files in. You’ll be using Docker Compose, so we need a docker-compose.yml file in the root of the directory. Edit it as:
The following sections describe this configuration in detail.
Environment variables
The MySQL environment variables MYSQL_DATABASE, MYSQL_USER, and MYSQL_PASSWORD define a new database named ...