postgres:
  image: postgres:latest

django-tenants-test:
  build: .
  links:
    - postgres
  volumes:
    - .:/code
  command: ./run_tests.sh
  environment:
    DATABASE_HOST: postgres
  ports:
    - "8080:8080"

postgres:
  image: postgres:latest

django-tenants-test:
  build: .
  links:
    - postgres
  volumes:
    - .:/code:z
  command: ./run_tests.sh
  environment:
    DATABASE_HOST: postgres
  ports:
    - "8080:8080"

Add :z bind-mount flag for docker
Add :z bind-mount flag for docker

otherwise I get Permission denied, from SELinux I think
