Move database host to .env

This commit is contained in:
Mouse Reeve 2020-03-28 17:23:43 -07:00
parent 77e6e2d708
commit 380e49712d
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@ MEDIA_ROOT=images/
POSTGRES_PASSWORD=fedireads
POSTGRES_USER=fedireads
POSTGRES_DB=fedireads
POSTGRES_HOST=db
RABBITMQ_DEFAULT_USER=rabbit
RABBITMQ_DEFAULT_PASS=changeme

View file

@ -84,7 +84,7 @@ FEDIREADS_DBS = {
'NAME': env('POSTGRES_DB', 'fedireads'),
'USER': env('POSTGRES_USER', 'fedireads'),
'PASSWORD': env('POSTGRES_PASSWORD', 'fedireads'),
'HOST': 'db',
'HOST': env('POSTGRES_HOST', ''),
'PORT': 5432
},
'sqlite': {