2022-08-03 02:06:55 +02:00
|
|
|
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:
|
2022-08-03 10:18:54 +02:00
|
|
|
- 8000:80
|
2022-08-03 02:06:55 +02:00
|
|
|
depends_on:
|
|
|
|
- backend
|