We run a Laravel application!
docker run --it --rm -v $(pwd):/var/www/html \
-w /var/www/html \
shippingdocker/app:latest \
composer create-project laravel/laravel application
This shares our current directory into the /var/www/html directory in the container, and then runs composer create project... to get Composer to add a Laravel project into a new directory named application.
We then update the application .env file to point MySQL to hostname mysql and run some migrations. It works!
The containers are both running within the same Docker network as described in the last video, and as described further in this video.