mirror of
https://github.com/aykhans/series-robot-web.git
synced 2025-04-20 14:01:25 +00:00
Added gunicorn to docker
This commit is contained in:
parent
a689929478
commit
5ceba6f13f
@ -12,11 +12,12 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- DJANGO_SETTINGS_MODULE=config.settings.production
|
- DJANGO_SETTINGS_MODULE=config.settings.production
|
||||||
build: .
|
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:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
- rabbitmq
|
||||||
volumes:
|
volumes:
|
||||||
- static_volume:/django_static
|
- static_volume:/django_static
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ DEBUG = True
|
|||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
|
CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:1337']
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
|
@ -5,6 +5,8 @@ DEBUG = True
|
|||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
|
CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:1337']
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user