pokeapi/config/docker-compose.py

30 lines
643 B
Python
Raw Normal View History

# Docker settings
2021-03-19 18:09:59 +00:00
import os
from .settings import *
DATABASES = {
"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"),
"HOST": "db",
"PORT": 5432,
}
}
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",
},
}
}
DEBUG = False
TASTYPIE_FULL_DEBUG = False
2021-03-19 18:53:12 +00:00
ALLOWED_HOSTS = ["*"]