#2: use gunicorn with nginx as reverse proxy

This commit is contained in:
Lexi / Zoe 2019-10-21 01:19:02 +02:00
parent 754363a92e
commit 3c1fec3f63
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
5 changed files with 32 additions and 10 deletions

View file

@ -1,11 +1,18 @@
version: "3"
services:
django-server:
django:
build: ../../
ports:
- "8042:8042"
expose:
- 8000
volumes:
- /run/mysqld/:/run/mysqld/
env_file:
- production.secrets.env
nginx:
build: ../nginx
ports:
- 8042:80
depends_on:
- django