mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 06:04:18 +00:00
28 lines
755 B
Python
28 lines
755 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
|
|
|
|
ALLOWED_HOSTS = ["*"]
|