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

30 lines
803 B
YAML
Raw Normal View History

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
- SESSION_COOKIE_SECURE=False
2022-08-03 02:06:55 +02:00
- 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