pokeapi/config/docker-compose.py
Alexandre Boucey d771c293df Added Docker Compose support for production (#183)
* Added Docker Compose support for production

* Added rate limiting to nginx
2016-07-07 13:23:59 +01:00

27 lines
580 B
Python

# Docker settings
from .settings import * # NOQA
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'pokeapi',
'USER': 'ash',
'PASSWORD': 'pokemon',
'HOST': 'db',
'PORT': 5432,
}
}
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://cache:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}
DEBUG = False
TASTYPIE_FULL_DEBUG = False