Added gunicorn to docker

This commit is contained in:
ayxan
2022-10-04 00:28:46 +04:00
parent a689929478
commit 5ceba6f13f
3 changed files with 6 additions and 1 deletions

View File

@@ -12,11 +12,12 @@ services:
environment:
- DJANGO_SETTINGS_MODULE=config.settings.production
build: .
command: python3 src/manage.py runserver 0.0.0.0:8000 --settings=config.settings.production
command: gunicorn --chdir src --bind 0.0.0.0:8000 config.wsgi
ports:
- "8000:8000"
depends_on:
- db
- rabbitmq
volumes:
- static_volume:/django_static