Docker Compose file for Containers with Apache, PHP 7.3, and MySQL 8, for Web Development.
More details can be found here.
Create the Containers.
docker-compose up -d
Check the Docker Compose Logs.
docker-compose logs
Open the http://localhost:4000/test.php url on your browser.
You should see the following text:
Connection successful!
Stop the Containers.
docker-compose stop
Remove the Containers.
docker-compose down