This repository holds the definition of customized NextCloud Docker images.
The main improvement of this image is, that basic ./occ actions that are needed after an update are executed unattended. For what actions are executed automatically, please have a look at files/boot.d/nextcloud/01_occ.sh.
There are two images built on a regular basis:
Compared to the original image nextcloud:apache this image contains only the extension with bootup scripts.
NextCloud publishes some extended Dockerfile examples with their Git repository. From there, the variant full is built as the basis for this image and the bootup scripts are added afterwards.
| ENV Variable | Default Value | Description |
|---|---|---|
NC_D_APPS |
calendar contacts |
List of applications to be checked for installed and enabled status on bootup – space separated! |
DISABLE_CHOWN |
set to true, if chown should be skipped at bootup |
|
CHOWN_DEBUG |
set to true, if chown should be run with debugging activated |
You can additionally to NC_D_APPS use any key of the $CONFIG array of the NextCloud config file, prefix it by NC_D_ and set a JSON string (or regular string) as value. If a dot . is separating the key name in $CONFIG, replace it by two underscores __ in the NC writing (htaccess.RewriteBase becomes NC_D_htaccess__RewriteBase).
There do exist more environmental variables – but those are not recommended to be changed at all.
This project is published unter CC BY-SA 4.0 license.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
2026-02-22 23:51:09