Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 12.0/apache/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 12.0/fpm-alpine/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 12.0/fpm/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 13.0/apache/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 13.0/fpm-alpine/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 13.0/fpm/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 14.0/apache/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 14.0/fpm-alpine/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

11 changes: 11 additions & 0 deletions 14.0/fpm/config/redis.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
if (getenv('REDIS_HOST')) {
$CONFIG = array (
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
'port' => getenv('REDIS_PORT') ?: 6379,
),
);
}

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ The install and update script is only triggered when a default command is used (

- `NEXTCLOUD_UPDATE` (default: _0_)

If you want to use Redis you have to create a seperate [Redis](https://hub.docker.com/_/redis/) container in your setup / in your docker-compose file. To inform Nextcloud about the Redis container add:

- 'REDIS_HOST' (not set by default) Name of Redis container
- 'REDIS_PORT' (optional, default:_6379_) Port number of Redis container. Use only if you use a non-standard port.


# Running this image with docker-compose
Expand Down