Skip to content
Snippets Groups Projects
Commit 0250f10c authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Docker: add dev backend

parent b4fc011b
No related branches found
No related tags found
No related merge requests found
certifi==2017.7.27.1
chardet==3.0.4
Django==1.11.6
djangorestframework==3.7.1
elasticsearch==5.4.0
idna==2.6
olefile==0.44
Pillow==4.3.0
psycopg2==2.7.3.2
pytz==2017.2
requests==2.18.4
urllib3==1.22
docker/backend/requirements.txt
\ No newline at end of file
......@@ -83,11 +83,11 @@ WSGI_APPLICATION = 'horae.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'horae_dev',
'USER': 'devuser',
'PASSWORD': 'devdata',
'HOST': 'localhost',
'PORT': 9100,
'NAME': os.environ.get('DB_NAME', 'horae_dev'),
'USER': os.environ.get('DB_USER', 'devuser'),
'PASSWORD': os.environ.get('DB_PASSWORD', 'devdata'),
'HOST': os.environ.get('DB_HOST', 'localhost'),
'PORT': os.environ.get('DB_PORT', 9100),
}
}
......@@ -142,7 +142,9 @@ REST_FRAMEWORK = {
}
# Elastic search config
ELASTIC_SEARCH_HOSTS = ['localhost', ]
ELASTIC_SEARCH_HOSTS = [
os.environ.get('ES_HOST', 'localhost'),
]
# Silent logger for elasticsearch
import logging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment