title: Applying changes in django/docker files
body: <p>I'm new at the development with <code>django</code> and <code>docker</code> and I have a problem when I change a file in the project. My problem is as follows:</p>
  
  <p>I make changes in the content of any file in the <code>django</code> project (Template, view, urls) but it does not update in my current running app. Always I want to see my changes I need to restart the server (I'm using <code>nginx</code>) doing <code>docker-compose up</code>.
  Is there a package or a alteration that I should install/do to make it able to accept change in running time?</p>
  
  <p>This is my <code>Dockerfile</code>:</p>
  
  <pre><code>FROM python:3.6
  ENV PYTHONUNBUFFERED 1
  RUN mkdir -p /opt/services/djangoapp/src
  
  COPY Pipfile Pipfile.lock /opt/services/djangoapp/src/
  WORKDIR /opt/services/djangoapp/src
  RUN pip install pipenv &amp;&amp; pipenv install --system
  
  RUN pip install pipenv &amp;&amp; pipenv install --system
  
  RUN pip install django-livereload 
  
  COPY . /opt/services/djangoapp/src
  RUN cd hello &amp;&amp; python manage.py collectstatic --no-input
  
  EXPOSE 8000
  CMD ["gunicorn", "-c", "config/gunicorn/conf.py", "--bind", ":8000", "--chdir", "hello", "hello.wsgi:application"]
  </code></pre>
  
  <p>Let me know any other information that I might provide to give a better glimpse of the problem (if it is not clear enough).</p>
  
  <pre><code>version: '3'
  
  services:
  
    # database containers, one for each db
    database1:
      image: postgres:10
      volumes:
        - database1_volume:/var/lib/postgresql/data
      env_file:
        - config/db/database1_env
      networks:
        - database1_network
  
    # web container, with django + gunicorn
    djangoapp:
      build: .
      environment:
        - DJANGO_SETTINGS_MODULE
      volumes:
        - .:/opt/services/djangoapp/src
        - static:/opt/services/djangoapp/static
        - media:/opt/services/djangoapp/media
        - .:/code
      networks:
        - database1_network
        - nginx_network
      depends_on:
        - database1
  
    # reverse proxy container (nginx)
    nginx:
      image: nginx:1.13
      ports:
        - 8000:80
      volumes:
        - ./config/nginx/conf.d:/etc/nginx/conf.d
        - static:/opt/services/djangoapp/static
        - media:/opt/services/djangoapp/media
      networks:
        - nginx_network
      depends_on:
        - djangoapp
  
  networks:
    database1_network:
      driver: bridge
    database2_network:
      driver: bridge
    nginx_network:
      driver: bridge
  
  volumes:
    database1_volume:
    static:
    media:
  </code></pre>