mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-23 03:43:03 +00:00
29 lines
783 B
Python
29 lines
783 B
Python
# Docker settings
|
|
import os
|
|
from .settings import *
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.postgresql_psycopg2",
|
|
"NAME": os.environ.get("POSTGRES_DB", "pokeapi"),
|
|
"USER": os.environ.get("POSTGRES_USER", "ash"),
|
|
"PASSWORD": os.environ.get("POSTGRES_PASSWORD", "pokemon"),
|
|
"HOST": os.environ.get("POSTGRES_HOST", "db"),
|
|
"PORT": os.environ.get("POSTGRES_PORT", 5432),
|
|
}
|
|
}
|
|
|
|
CACHES = {
|
|
"default": {
|
|
"BACKEND": "django_redis.cache.RedisCache",
|
|
"LOCATION": os.environ.get("REDIS_CONNECTION_STRING", "redis://cache:6379/1"),
|
|
"OPTIONS": {
|
|
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
|
},
|
|
}
|
|
}
|
|
|
|
DEBUG = False
|
|
TASTYPIE_FULL_DEBUG = False
|
|
|
|
ALLOWED_HOSTS = ["*"]
|