mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-21 22:58:05 +02:00
Compare commits
7 commits
bde6a3e945
...
8b4d0ccf2e
Author | SHA1 | Date | |
---|---|---|---|
|
8b4d0ccf2e | ||
|
85eb58a828 | ||
|
d5c6e2ff0e | ||
|
2f4de23ea1 | ||
|
035003969a | ||
|
9360474bc1 | ||
|
374495c565 |
5 changed files with 31 additions and 5 deletions
|
@ -21,6 +21,7 @@ RUN set -ex; \
|
|||
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
|
||||
ENV PHP_MEMORY_LIMIT 512M
|
||||
ENV PHP_UPLOAD_LIMIT 512M
|
||||
ENV REDIS_DB_INDEX=0
|
||||
RUN set -ex; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
|
|
|
@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) {
|
|||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
if (getenv('REDIS_DB_INDEX') !== false) {
|
||||
$CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DB_INDEX');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
21
README.md
21
README.md
|
@ -1,3 +1,12 @@
|
|||

|
||||
[](https://github.com/nextcloud/docker/releases/)
|
||||
[](https://nextcloud.com/changelog/)
|
||||

|
||||

|
||||

|
||||

|
||||
[](https://github.com/nextcloud/helm/?tab=readme-ov-file)
|
||||
|
||||
# What is Nextcloud?
|
||||
|
||||
A safe home for all your data. Access & share your files, calendars, contacts, mail & more from any device, on your terms.
|
||||
|
@ -19,6 +28,9 @@ The second option is a `fpm` container. It is based on the [php-fpm](https://hub
|
|||
|
||||
Most Nextcloud Server administrative matters are covered in the official [Nextcloud Admin Manual](https://docs.nextcloud.com/server/latest/admin_manual/) or [other official Nextcloud documentation](https://docs.nextcloud.com) (which are all routinely updated).
|
||||
|
||||
[](https://help.nextcloud.com/)
|
||||
[](https://help.nextcloud.com/)
|
||||
|
||||
**If you have any problems or usage questions while using the image, please ask for assistance on the [Nextcloud Community Help Forum](https://help.nextcloud.com)** rather than reporting them as "bugs" (unless they are bugs of course). This helps the
|
||||
maintainers (who are volunteers) remain focused on making the image better (rather than responding solely to one-on-one support issues). (Tip: Some of the maintainers are also regular responders to help requests
|
||||
on the [community help forum](https://help.nextcloud.com/).)
|
||||
|
@ -225,6 +237,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_PASSWORD` (not set by default) Redis password
|
||||
- `REDIS_DB_INDEX` (default: `0`) Value for dbindex config value
|
||||
|
||||
Check the [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html) for more information.
|
||||
|
||||
|
@ -732,8 +745,16 @@ If there is a relevant existing open issue, you can either add to the discussion
|
|||
|
||||
If you believe you've found a new bug, please create a new Issue so that others can try to reproduce it and remediation can be tracked.
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
**If you have any problems or usage questions while using the image, please ask for assistance on the [Nextcloud Community Help Forum](https://help.nextcloud.com)** rather than reporting them as "bugs" (unless they really are bugs of course). This helps the
|
||||
maintainers (who are volunteers) remain focused on making the image better (rather than responding solely to one-on-one support issues). (Tip: Some of the maintainers are also regular responders to help requests
|
||||
on the [Nextcloud Community Help Forum](https://help.nextcloud.com).)
|
||||
|
||||
[](https://help.nextcloud.com/)
|
||||
[](https://help.nextcloud.com/)
|
||||
|
||||
Most Nextcloud Server matters are covered in the official [Nextcloud Admin Manual](https://docs.nextcloud.com/server/latest/admin_manual/) or the [other official Nextcloud documentation](https://docs.nextcloud.com) (which are routinely updated).
|
||||
|
|
|
@ -114,15 +114,15 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
|||
# check if redis host is an unix socket path
|
||||
if [ "$(echo "$REDIS_HOST" | cut -c1-1)" = "/" ]; then
|
||||
if [ -n "${REDIS_HOST_PASSWORD+x}" ]; then
|
||||
echo "session.save_path = \"unix://${REDIS_HOST}?auth=${REDIS_HOST_PASSWORD}\""
|
||||
echo "session.save_path = \"unix://${REDIS_HOST}/${REDIS_DB_INDEX}?auth=${REDIS_HOST_PASSWORD}\""
|
||||
else
|
||||
echo "session.save_path = \"unix://${REDIS_HOST}\""
|
||||
echo "session.save_path = \"unix://${REDIS_HOST}/${REDIS_DB_INDEX}\""
|
||||
fi
|
||||
# check if redis password has been set
|
||||
elif [ -n "${REDIS_HOST_PASSWORD+x}" ]; then
|
||||
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_HOST_PORT:=6379}?auth=${REDIS_HOST_PASSWORD}\""
|
||||
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_HOST_PORT:=6379}/${REDIS_DB_INDEX}?auth=${REDIS_HOST_PASSWORD}\""
|
||||
else
|
||||
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_HOST_PORT:=6379}\""
|
||||
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_HOST_PORT:=6379}/${REDIS_DB_INDEX}\""
|
||||
fi
|
||||
echo "redis.session.locking_enabled = 1"
|
||||
echo "redis.session.lock_retries = -1"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
stable_channel='30.0.2'
|
||||
stable_channel='30.0.4'
|
||||
|
||||
self="$(basename "$BASH_SOURCE")"
|
||||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue