I found the setup processs for laravel in docker to be fairly easy to get wrong, so I made this for myself and others who don't necessarily want to run an entire lamp stack or install composer/apache on their local machine.
- $ sh composer.sh create-project --prefer-dist laravel/laravel example-proj
- edit config files, esp docker-compose.yml as needed for project
- $ docker-compose pull
- $ docker-compose build --force-rm
- $ docker-compose up
- optional: $ docker exec -it [container id] sh (for interactive shell, use of artisan)