title: Docker setup for a development environment?
body: <p>I'm trying to find out how to setup my current docker compose yaml file to run my dev env. I'm new to docker but I was given a project that uses it.</p>
  
  <pre><code>version: '3'
   services:
    database:
      image: someinfo:9.5
      environment:
        - POSTGRES_USER=user
        - POSTGRES_PASSWORD=pass
      volumes:
        - db-data:/var/lib/postgresql/data
    backend:
      build: .
      command: bash /somepath/server/django_devserver.sh
      volumes:
      - .:/volumeinfo
      links:
      - database
      ports:
      - "8000:8000"
      environment:
        DJANGO_SETTINGS_MODULE: projectname.settings.production
        SCHEMA: https
        DB_HOST: database
        PYTHONUNBUFFERED: 1
   volumes:
    db-data:
  </code></pre>
  
  <p>Currently this is running the Django production settings in my dev env. I want to keep that there but I also want to tell docker to run my dev settings when in the dev server. How can I do that? Would I create a new container called dev-backend with the dev vars? </p>
  
  <p>Then would I run <code>docker-compose up dev-backend</code> or something like that? Forgive my ignorance, today is my first day with Docker.</p>