diff --git a/docker/Dockerfile b/docker/Dockerfile index 1e22a8aac2..46960ee874 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -57,8 +57,9 @@ apt-get update \ && echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf \ # Disable saving the Redis database echo "save \"\"" >> /etc/redis/redis.conf \ -# Only provision 1 database -&& echo "databases 1" >> /etc/redis/redis.conf +# Only provision 2 database. One for the broker and the other for +# results +&& echo "databases 2" >> /etc/redis/redis.conf #### diff --git a/mayan/apps/platform/classes.py b/mayan/apps/platform/classes.py index 384dfa2fb9..0f470d93ae 100644 --- a/mayan/apps/platform/classes.py +++ b/mayan/apps/platform/classes.py @@ -108,7 +108,7 @@ class PlatformTemplate(object): class PlatformTemplateSupervisord(PlatformTemplate): context_defaults = { 'BROKER_URL': 'redis://127.0.0.1:6379/0', - 'CELERY_RESULT_BACKEND': 'redis://127.0.0.1:6379/0', + 'CELERY_RESULT_BACKEND': 'redis://127.0.0.1:6379/1', } label = _('Template for Supervisord.') name = 'supervisord'