maintained by ServerContainers
FAQ - All you need to know about the servercontainers Containers
This Dockerfile (available as servercontainers/nextcloud) gives you a Nextcloud-Server with Apache/PHP on Debian.
On the first start (or if Database Table is empty), the setup is executed as specified by environment variables.
For Configuration of the Server you use environment Variables.
If you want to use this in a public/production environment, use this behind a proxy - e.g. servercontainers/nginx.
It's based on the debian:jessie Image
View in Docker Registry servercontainers/nextcloud
View in GitHub ServerContainers/nextcloud
- TZ
- default Europe/Berlin - change if you want a different TimeZone
- RELATIVE_URL
- default / - the path nextcloud will be available e.g. '/nextcloud' etc.
- HSTS_HEADERS
- default none - if set to any value, the hsts headers will be enabled
-
CUSTOM_PLUGINS
- default none - list of additional nextcloud plugins to install e.g. 'calendar contacts'
-
ADMIN_USER
- default none - name for the admin user for the nextcloud installation
-
ADMIN_PASSWORD
- default none - password for the admin user for the nextcloud installation
-
KEEP_INSTALLATION_FOLDERS
- default none - if set to any value, the installation folders config.bak apps.bak and data.bak will be kept (makes troubles with code analysis)
to enable automatic installation you need to set all of the following envs.
- DB_TYPE
- default none - set this to the database type (mysql etc.)
- sqlite
- mysql
- pgsql
- default none - set this to the database type (mysql etc.)
- DB_HOST
- default none - set to db host
- DB_NAME
- default none - name of the db for the nextcloud instance
- DB_USER
- default none - name for the user for the db connection
- DB_PASSWORD
- default none - password for the user for the db connection
You might want to edit the config.php manualy to add and modify custom settings.
'mail_smtpmode' => 'sendmail',
'mail_from_address' => 'admin',
'mail_domain' => 'nextcloud.my.tld',
'user_backends' => array (
0 => array (
'class' => 'OC_User_IMAP',
'arguments' => array (
0 => '{imap.gmail.com:993/imap/ssl}'
),
),
),
wget -O - https://nextcloud.com/changelog/ 2> /dev/null | tr '>' '\n' | tr '<' '\n' | grep Version | head -n1 | awk '{print $2}'