This yml file shows an example of how to use docker-compose to launch a wordpress site using multiple containers. In this case it is launching one container using the wordpress image and other for the mysql database.
Clone the repo to a local directory. Once the repo is cloned locally, move to folder containing the docker-compose.yml file
Run following command:
docker-compose up -d
-d flag indicates the containers would run in detached mode.
This would pull the required images from docker hub and fire up the required containers. You can view the list of running containers by running following command:
docker container ls
Note:
Please ensure following are installed before you run docker compose:
Open up your favorite browser and navigate to (http://localhost:5001). You should now see the WordPress site!!
Run following commands if you would like to stop the containers:
docker-compose down