version: "3" services: backend: container_name: clubhaus_backend image: icaotix/clubhaus_backend build: context: ../../ dockerfile: Deployment/Test/Dockerfile.python command: gunicorn clubhaus.wsgi:application --bind 0.0.0.0:8000 volumes: - ../../clubhaus:/usr/src/app environment: - ALLOWED_HOSTS=internal.security - CSRF_TRUSTED_ORIGINS=internal.security - IP_RATE_LIMIT_TIME=1 # rate limit doesn't work in docker networking therefore disable it nginx: container_name: clubhaus_nginx image: icaotix/clubhaus_nginx build: context: . dockerfile: Dockerfile.nginx volumes: - ../../clubhaus:/usr/src/app:ro ports: - 1337:80 depends_on: - backend