Setting up Docker for My Opal
Over the weekend I set aside some time to configure My Opal to work within a Docker container. I initially followed http://geekyplatypus.com/dockerise-your-php-application-with-nginx-and-php7-fpm/ along with the update over at http://geekyplatypus.com/making-your-dockerised-php-application-even-better/.
The Best Practices Around Production Ready Web Apps with Docker Compose is filled with useful tidbits, especially around the use of environment variables and using a production mindset for defaults. I think that I will heed the advice over at Why I Prefer Running nginx on My Docker Host Instead of in a Container and go with a similar set up too.
In order to run composer as a non-root user I followed Running a Docker container as a non-root user. I also came across an example of using a Makefile to run Docker commands. At the moment I have a bash script for various commands, but this looks interesting too.
Along the way I had to deal with a case sensitive issue with Git. I think I have it sorted after following https://stackoverflow.com/a/11183844/89783. I think I introduced the case issue when developing on Windows.