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 set -e
# setting up environment variables to work with DATABASE_URL and DJANGO_CACHE_URL # 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 if [ -z "$POSTGRES_ENV_POSTGRES_USER" ]; then
export POSTGRES_ENV_POSTGRES_USER=postgres export POSTGRES_ENV_POSTGRES_USER=postgres

View File

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