- First, you need to install Docker e.g. Docker for Mac and Docker-Compose.
- to start all containers in detached mode:
docker-compose up -d
- to access the CLI of the PHP container:
docker-compose run --rm php-cli
- to stop all containers:
docker stop $(docker ps -q)
- to stop the current docker-compose containers:
docker-compose down
- Add your files to the
public/
-directory - You can access them via http://fizzbuzz.localtest.me/app.php