mirror of
https://github.com/aykhans/series-robot-web.git
synced 2025-04-21 06:13:34 +00:00
Added gunicorn to docker
This commit is contained in:
parent
a689929478
commit
5ceba6f13f
@ -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
|
||||
|
||||
|
@ -5,6 +5,8 @@ DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:1337']
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
|
@ -5,6 +5,8 @@ DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:1337']
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
|
Loading…
x
Reference in New Issue
Block a user