Removed gunicorn and fixed nginx

This commit is contained in:
ayxan
2022-10-02 01:51:45 +04:00
parent 46bbb10d20
commit a689929478
4 changed files with 16 additions and 15 deletions

View File

@@ -5,17 +5,20 @@ services:
image: postgres
volumes:
- dbdata:/var/lib/postgresql/data
- static_volume:/src/django_static
env_file:
- config/db/databasepostgresql_env
django:
environment:
- DJANGO_SETTINGS_MODULE=config.settings.production
build: .
command: gunicorn src.config.wsgi:application --bind 0.0.0.0:8000
command: python3 src/manage.py runserver 0.0.0.0:8000 --settings=config.settings.production
ports:
- "8000:8000"
depends_on:
- db
volumes:
- static_volume:/django_static
nginx:
image: nginx
@@ -23,7 +26,7 @@ services:
- "1337:8080"
volumes:
- ./config/nginx/local.conf:/etc/nginx/conf.d/default.conf:ro
- static_volume:/src/django_static
- static_volume:/django_static
depends_on:
- django