dev:
  build: .
  command: /sbin/my_init
  ports:
   - "8000:8000"
   - "8080:8080"
   - "9876:9876"
  volumes:
   - ".:/vagrant"
  privileged: true

selenium:
  build: .
  dockerfile: Dockerfile-selenium
  ports:
   - "4444:4444"
  volumes:
   - "./test/selenium:/selenium"
   - "/dev/shm:/dev/shm"
  links:
   - dev 

dev:
  build: .
  command: /sbin/my_init
  ports:
   - "8000:8000"
   - "8080:8080"
   - "9876:9876"
  volumes:
   - ".:/vagrant"
  privileged: true
  environment:
   - PYTHONDONTWRITEBYTECODE=true

selenium:
  build: .
  dockerfile: Dockerfile-selenium
  ports:
   - "4444:4444"
  volumes:
   - "./test/selenium:/selenium"
   - "/dev/shm:/dev/shm"
  links:
   - dev 
  environment:
   - PYTHONDONTWRITEBYTECODE=true

Stop python from creating .pyc files
Stop python from creating .pyc files
