title: Static files with Docker when only Nginx is on host system
body: <p>I have Nginx on my host machine (Ubuntu server). How should I set up static files when using Docker?</p>
  
  <pre><code>version: '2'
  
  services:
    postgres:
      image: postgres:9.6
    redis:
      image: "redis:alpine"
    web: &amp;django
      restart: always
      environment:
        - DJANGO_SECRET_KEY=local
      image: web
      build:
        context: .
        dockerfile: ./compose/production/web/Dockerfile
      command: /gunicorn.sh
      depends_on:
        - postgres
        - redis
      links:
        - redis
      ports:
        - "8083:5000"
  </code></pre>
  
  <p>In another project (with no Docker) I have this setting in <code>sites-enabled/mysite</code>:</p>
  
  <pre><code>location /static/ {
      root /home/myproject;
  }
  </code></pre>