Docker: Verify that redis is used

Created on 9 Aug 2017  路  4Comments  路  Source: nextcloud/docker

How can I make sure that redis is in fact being used? I setup my docker compose without redis at first and everything works. Now I want to use redis for more speed and less file locking errors. I added the redis part from the examples directory and did a down/up. Is redis being used now?
If I do a docker-compose exec redis bash and then a redis-cli and a KEYS * and get nothing. Is this verification possible at all?

help wanted

Most helpful comment

Well yes I think so. I guess it is related to the "improve docs" issue now, since the example docker-compose.yml installs redis but never uses it.

All 4 comments

Okay it seems like that the default docker image does not use redis. I had to modify the following file:
config/apcu.config.php

<?php
$CONFIG = array (
  'memcache.local' => '\OC\Memcache\APCu',
  'redis' => array(
    'host' => 'redis',
    'port' => 6379,
  ),
  'memcache.locking' => '\OC\Memcache\Redis',
);

Now it works fine. If I do a status in redis-cli, I can see the number of connections and so on.

Great!

Can we close this issue then?

Well yes I think so. I guess it is related to the "improve docs" issue now, since the example docker-compose.yml installs redis but never uses it.

i ran into the same problem. dont think the docs have been updated.

Was this page helpful?
0 / 5 - 0 ratings