2016-07-07 12:23:59 +00:00
|
|
|
# Docker settings
|
2021-03-19 18:09:59 +00:00
|
|
|
import os
|
2018-10-20 00:05:10 +00:00
|
|
|
from .settings import *
|
2016-07-07 12:23:59 +00:00
|
|
|
|
|
|
|
DATABASES = {
|
2020-02-17 20:58:07 +00:00
|
|
|
"default": {
|
|
|
|
"ENGINE": "django.db.backends.postgresql_psycopg2",
|
2021-05-14 17:48:14 +00:00
|
|
|
"NAME": os.environ.get("POSTGRES_DB", "pokeapi"),
|
2021-03-19 18:09:59 +00:00
|
|
|
"USER": os.environ.get("POSTGRES_USER", "ash"),
|
|
|
|
"PASSWORD": os.environ.get("POSTGRES_PASSWORD", "pokemon"),
|
2021-05-16 18:48:50 +00:00
|
|
|
"HOST": os.environ.get("POSTGRES_HOST", "db"),
|
2021-05-16 20:13:07 +00:00
|
|
|
"PORT": os.environ.get("POSTGRES_PORT", 5432),
|
2018-10-19 18:03:48 +00:00
|
|
|
}
|
2016-07-07 12:23:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CACHES = {
|
|
|
|
"default": {
|
|
|
|
"BACKEND": "django_redis.cache.RedisCache",
|
2021-05-16 20:13:07 +00:00
|
|
|
"LOCATION": os.environ.get("REDIS_CONNECTION_STRING", "redis://cache:6379/1"),
|
2020-11-23 21:05:49 +00:00
|
|
|
"OPTIONS": {
|
|
|
|
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
|
|
|
},
|
2016-07-07 12:23:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DEBUG = False
|
|
|
|
TASTYPIE_FULL_DEBUG = False
|
2021-03-19 18:53:12 +00:00
|
|
|
|
2021-03-23 19:43:59 +00:00
|
|
|
ALLOWED_HOSTS = ["*"]
|