1
0
clubhaus-schornbach/Deployment/Test/docker-compose.yml

29 lines
767 B
YAML

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:
- 8000:80
depends_on:
- backend