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",
|
|
|
|
"NAME": "pokeapi",
|
2021-03-19 18:09:59 +00:00
|
|
|
"USER": os.environ.get("POSTGRES_USER", "ash"),
|
|
|
|
"PASSWORD": os.environ.get("POSTGRES_PASSWORD", "pokemon"),
|
2020-02-17 20:58:07 +00:00
|
|
|
"HOST": "db",
|
|
|
|
"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",
|
|
|
|
"LOCATION": "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
|
|
|
|
|
|
|
ALLOWED_HOSTS = ["*"]
|