switched to redis cache

This commit is contained in:
Jay 2015-07-21 10:22:02 +02:00
parent bff7487121
commit 7690b42c27
2 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,7 @@
set -e
# setting up environment variables to work with DATABASE_URL and DJANGO_CACHE_URL
export DJANGO_CACHE_URL=memcache://memcached:11211
export DJANGO_CACHE_URL=redis://redis:6379
if [ -z "$POSTGRES_ENV_POSTGRES_USER" ]; then
export POSTGRES_ENV_POSTGRES_USER=postgres

View File

@ -8,7 +8,7 @@ django:
build: .
links:
- postgres
- memcached
- redis
{% if cookiecutter.use_celery %}
- rabbitmq
{% endif %}
@ -22,8 +22,8 @@ nginx:
ports:
- "0.0.0.0:80:80"
memcached:
image: memcached
redis:
image: redis:3.0
{% if cookiecutter.use_celery %}
rabbitmq:
image: rabbitmq
@ -34,6 +34,7 @@ celeryworker:
links:
- rabbitmq
- postgres
- redis
command: su -m django -c "celery -A {{cookiecutter.repo_name}}.taskman worker -l INFO"
celerybeat:
@ -42,5 +43,6 @@ celerybeat:
links:
- rabbitmq
- postgres
- redis
command: su -m django -c "celery -A {{cookiecutter.repo_name}}.taskman beat -l INFO"
{% endif %}