Nick99
July 20, 2019, 4:19am
1
Hi all,
So I am setting up Nextcloud using the official Docker image having it fetch “nextcloud:latest”. The thing is, I want to edit the max file size PHP allows to 10 GB and have a larger timeout time.
How can i do that? This is (part) of my docker-compose.yml: https://pastebin.com/yz1A32hY
What environment variables would i need to pass?
Also a small question: Will nextcloud update to the latest version every time I do “docker-compose up -d”? (assuming there is a new version)
Lastly, is there documentation of what environment variables I can pass in docker-compose?
well. it’s ansible and not docker-compose. but i guess you can get the answer to your question anyhow.
you create the config files you want to customize
and copy/map them into the container
not sure if you have to stop and remove the old container. but yes that’s the way you run an update. the update is performed by the entrypoint skript.
installed_version="$(php -r 'require "/var/www/html/version.php"; echo implode(".", $OC_Version);')"
fi
# shellcheck disable=SC2016
image_version="$(php -r 'require "/usr/src/nextcloud/version.php"; echo implode(".", $OC_Version);')"
if version_greater "$installed_version" "$image_version"; then
echo "Can't start Nextcloud because the version of the data ($installed_version) is higher than the docker image version ($image_version) and downgrading is not supported. Are you sure you have pulled the newest image version?"
exit 1
fi
if version_greater "$image_version" "$installed_version"; then
echo "Initializing nextcloud $image_version ..."
if [ "$installed_version" != "0.0.0.0" ]; then
echo "Upgrading nextcloud from $installed_version ..."
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before
fi
if [ "$(id -u)" = 0 ]; then
rsync_options="-rlDog --chown www-data:root"
else
rsync_options="-rlD"
fi
you mean env vars to pass into the docker container?
that should be in the readme
or in the entrypoint skripts of the container.