From 380e49712dc2aeea2a7e9773682746e0a59be8ef Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 28 Mar 2020 17:23:43 -0700 Subject: [PATCH] Move database host to .env --- .env.example | 1 + fedireads/settings.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 509331ec..a7a37c81 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/fedireads/settings.py b/fedireads/settings.py index c4ce0b2c..3c951496 100644 --- a/fedireads/settings.py +++ b/fedireads/settings.py @@ -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': {