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.yml
Set permissions to secure your passwords:
chmod 600
and then run:
docker-compose up -d
ADMIN_USER
ADMIN_USER: admin
The username for the initial admin user, created on a new installation.
ADMIN_PASSWORD
ADMIN_PASSWORD: admin
The password for the initial admin user, created on a new installation.
TRUSTED_DOMAIN
TRUSTED_DOMAIN: localhost
The 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: nextcloud
The password of the user root
in the database.
MYSQL_USER
MYSQL_USER: nextcloud
The user used to connect to the database.
MYSQL_PASSWORD
MYSQL_PASSWORD: nextcloud
The 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.