mybuddy/babybuddy/settings/docker.py

18 lines
609 B
Python
Raw Normal View History

from .base import *
2017-11-24 14:09:43 +00:00
# Database
2020-01-19 16:49:45 +00:00
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
2017-11-24 14:09:43 +00:00
# Load settings from env file / variables with fallback defaults to support current psql deployment
2017-11-24 14:09:43 +00:00
DATABASES = {
'default': {
'ENGINE': os.getenv('DB_ENGINE') or 'django.db.backends.postgresql_psycopg2',
'NAME': os.getenv('DB_NAME') or 'postgres',
'USER': os.getenv('DB_USER') or 'postgres',
'PASSWORD': os.environ.get('DB_PASSWORD') or os.environ.get('POSTGRES_PASSWORD'),
'HOST': os.getenv('DB_HOST') or 'db',
'PORT': os.getenv('DB_PORT') or 5432,
2017-11-24 14:09:43 +00:00
}
}