mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-21 22:58:05 +02:00
Compare commits
9 commits
ee0ef65c2b
...
6a954b47e4
Author | SHA1 | Date | |
---|---|---|---|
|
6a954b47e4 | ||
|
7f707b6c5d | ||
|
5b932e390e | ||
|
351e81f6d2 | ||
|
13e24519a2 | ||
|
008440f9e8 | ||
|
889427d743 | ||
|
04c7e74bec | ||
|
73c73bfd15 |
15 changed files with 47 additions and 6 deletions
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ RUN set -ex; \
|
|||
| sort -u \
|
||||
| xargs -rt apt-mark manual; \
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
apt-get upgrade -y && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# set recommended PHP.ini settings
|
||||
|
@ -98,7 +98,7 @@ RUN { \
|
|||
echo 'opcache.enable=1'; \
|
||||
echo 'opcache.interned_strings_buffer=32'; \
|
||||
echo 'opcache.max_accelerated_files=10000'; \
|
||||
echo 'opcache.memory_consumption=128'; \
|
||||
echo 'opcache.memory_consumption=256'; \
|
||||
echo 'opcache.save_comments=1'; \
|
||||
echo 'opcache.revalidate_freq=60'; \
|
||||
echo 'opcache.jit=1255'; \
|
||||
|
@ -164,7 +164,7 @@ RUN set -ex; \
|
|||
mkdir -p /usr/src/nextcloud/custom_apps; \
|
||||
chmod +x /usr/src/nextcloud/occ; \
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; \
|
||||
apt-get upgrade -y && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY *.sh upgrade.exclude /
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ RUN { \
|
|||
echo 'opcache.enable=1'; \
|
||||
echo 'opcache.interned_strings_buffer=32'; \
|
||||
echo 'opcache.max_accelerated_files=10000'; \
|
||||
echo 'opcache.memory_consumption=128'; \
|
||||
echo 'opcache.memory_consumption=256'; \
|
||||
echo 'opcache.save_comments=1'; \
|
||||
echo 'opcache.revalidate_freq=60'; \
|
||||
echo 'opcache.jit=1255'; \
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ RUN { \
|
|||
echo 'opcache.enable=1'; \
|
||||
echo 'opcache.interned_strings_buffer=32'; \
|
||||
echo 'opcache.max_accelerated_files=10000'; \
|
||||
echo 'opcache.memory_consumption=128'; \
|
||||
echo 'opcache.memory_consumption=256'; \
|
||||
echo 'opcache.save_comments=1'; \
|
||||
echo 'opcache.revalidate_freq=60'; \
|
||||
echo 'opcache.jit=1255'; \
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_HOST_USER') !== false) {
|
||||
$CONFIG['redis']['user'] = (string) getenv('REDIS_HOST_USER');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ RUN { \
|
|||
echo 'opcache.enable=1'; \
|
||||
echo 'opcache.interned_strings_buffer=32'; \
|
||||
echo 'opcache.max_accelerated_files=10000'; \
|
||||
echo 'opcache.memory_consumption=128'; \
|
||||
echo 'opcache.memory_consumption=512'; \
|
||||
echo 'opcache.save_comments=1'; \
|
||||
echo 'opcache.revalidate_freq=60'; \
|
||||
echo 'opcache.jit=1255'; \
|
||||
|
|
|
@ -236,6 +236,7 @@ To use Redis for memory caching as well as PHP session storage, specify the foll
|
|||
|
||||
- `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_USER` (not set by default) Optional username for Redis, only use for external Redis servers that require a user.
|
||||
- `REDIS_HOST_PASSWORD` (not set by default) Redis password
|
||||
|
||||
Check the [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html) for more information.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue