To build and run the containers execute:
docker-compose up
To stop the containers execute:
docker-compose stop
To start stopped containers execute:
docker-compose start
To remove all stopped containers execute:
docker-compose rm
Within the PHP docker container you should be able to connect to MySQL with:
<?php
$mysqli = new mysqli('db01', 'my_user', 'my_password', 'my_db');