mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-17 18:46:43 +01:00
Adding support for configuring redis dbindex value
Signed-off-by: Jan Zalar jan.zalar6@gmail.com Signed-off-by: janz <jan.zalar@arnes.si>
This commit is contained in:
parent
e6d024039f
commit
374495c565
2 changed files with 5 additions and 0 deletions
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
||||||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||||
$CONFIG['redis']['port'] = 6379;
|
$CONFIG['redis']['port'] = 6379;
|
||||||
}
|
}
|
||||||
|
if (getenv('REDIS_DBINDEX') !== false) {
|
||||||
|
$CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DBINDEX');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,6 +160,7 @@ If you want to use Redis you have to create a separate [Redis](https://hub.docke
|
||||||
- `REDIS_HOST` (not set by default) Name of Redis container
|
- `REDIS_HOST` (not set by default) Name of Redis container
|
||||||
- `REDIS_HOST_PORT` (default: `6379`) Optional port for Redis, only use for external Redis servers that run on non-standard ports.
|
- `REDIS_HOST_PORT` (default: `6379`) Optional port for Redis, only use for external Redis servers that run on non-standard ports.
|
||||||
- `REDIS_HOST_PASSWORD` (not set by default) Redis password
|
- `REDIS_HOST_PASSWORD` (not set by default) Redis password
|
||||||
|
- `REDIS_DBINDEX`(not set by default) Value for dbindex config value
|
||||||
|
|
||||||
The use of Redis is recommended to prevent file locking problems. See the examples for further instructions.
|
The use of Redis is recommended to prevent file locking problems. See the examples for further instructions.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue