Skip to content

Commit 0201af7

Browse files
author
janz
committed
Adding support for DBINDEX redis config value in docker compose
1 parent e6d0240 commit 0201af7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

29/apache/config/redis.config.php

+3
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@
1414
} elseif (getenv('REDIS_HOST')[0] != '/') {
1515
$CONFIG['redis']['port'] = 6379;
1616
}
17+
if (getenv('REDIS_DBINDEX') !== false) {
18+
$CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DBINDEX');
19+
}
1720
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ If you want to use Redis you have to create a separate [Redis](https://hub.docke
160160
- `REDIS_HOST` (not set by default) Name of Redis container
161161
- `REDIS_HOST_PORT` (default: `6379`) Optional port for Redis, only use for external Redis servers that run on non-standard ports.
162162
- `REDIS_HOST_PASSWORD` (not set by default) Redis password
163+
- `REDIS_DBINDEX`(not set by default) Value for dbindex config value
163164

164165
The use of Redis is recommended to prevent file locking problems. See the examples for further instructions.
165166

0 commit comments

Comments
 (0)