This repository has been deprecated in favor of the official Nextcloud Docker Image found at: https://github.com/nextcloud/docker
It is now read only and will no longer be updated.
This docker image contains Nextcloud packaged with Apache2 HTTPD. The docker-compose file provisions Nextcloud, MySQL and Redis.
- Docker
- Docker Compose
Adjust docker-compose.yml to your liking (be sure to update the passwords!):
vim docker-compose.ymlSet permissions to secure your passwords:
chmod 600and then run:
docker-compose up -dADMIN_USER
ADMIN_USER: adminThe username for the initial admin user, created on a new installation.
ADMIN_PASSWORD
ADMIN_PASSWORD: adminThe password for the initial admin user, created on a new installation.
TRUSTED_DOMAIN
TRUSTED_DOMAIN: localhostThe trusted domain that is used by Nextcloud to determine if access is granted, as well as by Let's Encrypt, if you want to use it.
MYSQL_ROOT_PASSWORD
MYSQL_ROOT_PASSWORD: nextcloudThe password of the user root in the database.
MYSQL_USER
MYSQL_USER: nextcloudThe user used to connect to the database.
MYSQL_PASSWORD
MYSQL_PASSWORD: nextcloudThe password used to connect to the database.
Use Traefk as a frontend to enable Let's Encrypt.
If you want to use cronjobs inside Nextcloud, setup a job like this:
*/15 * * * * docker exec $(docker ps | grep nextcloud_web | awk '{print $NF}') sh -c "sudo -u www-data php -f /var/www/html/nextcloud/cron.php"Licensed under the MIT License, see LICENSE for more details.