Code reloading with Docker

Short post today but I spent sometime converting a Vagrant based development environment over to Docker. One of the most magical features of this is the increased feedback speed. One pattern I found that seems to work really well, is to use:

  1. A docker-compose configuration that mounts the source into the container.
  2. Overriding the command that is run to watch/reload

For example Flask has Debug Mode. Gunicorn has –reload.