title: Auto-reloading of code changes with Django development in Docker with Gunicorn
body: <p>I'm using a Docker container for Django development, and the container runs Gunicorn with Nginx. I'd like code changes to auto-load, but the only way I can get them to load is by rebuilding with docker-compose (<code>docker-compose build</code>). The problem with "build" is that it re-runs all my pip installs. </p>
  
  <p>I'm using the Gunicorn <code>--reload</code> flag, which is apparently supposed to do what I want. Here are my Docker config files:</p>
  
  <pre><code>## Dockerfile:
  FROM python:3.4.3
  RUN mkdir /code
  WORKDIR /code
  ADD . /code/
  RUN pip install -r /code/requirements/docker.txt
  
  ## docker-compose.yml:
  web:
    restart: always
    build: .
    expose:
      - "8000"
    links:
      - postgres:postgres
    volumes:
      - /usr/src/app/static
    env_file: .env
    command: /usr/local/bin/gunicorn myapp.wsgi:application -w 2 -b :8000 --reload
  
  nginx:
    restart: always
    build: ./config/nginx
    ports:
      - "80:80"
    volumes:
      - /www/static
    volumes_from:
      - web
    links:
      - web:web
  
  postgres:
    restart: always
    image: postgres:latest
    volumes:
      - /var/lib/postgresql
    ports:
      - "5432:5432"
  </code></pre>
  
  <p>I've tried some of the other Docker commands (<code>docker-compose restart</code>, <code>docker-compose up</code>), but the code won't refresh.</p>
  
  <p>What am I missing?</p>