This is a docker-compose based installer for Nextcloud, with Nginx reverse proxy that supports HTTPS with custom certificate. This configuration should be the most lightweight since all components are using the Alpine based flavors.
- Clone repo
- Edit
docker-compose.yamland set MYSQL root password - Edit
db.envand set user, database and database password for Nextcloud - Edit
tls.crtandtls.keyinconfig/proxy/tlsdirectory - For LDAP (unencrypted), execute
docker-compose up -dto finish - (Optional) For LDAPS (encrypted), execute
docker-compose up -d --buildto finish
Nextcloud by default stores all user file content in the webroot /var/www/html/data. The default docker-compose.yaml has it configured as a NFS volume mount nextcloud-data. You can change this to suit your needs.
If any of the component images are changed and you need to perform an upgrade. If you are upgrading Nextcloud itself, refer to official documentation for more information. However, according to their documentation, the entrypoint script for the Docker images will check to see what version you have already installed and perform an upgrade as needed on startup.
docker pull image:tagto pull down the current image- If you are using LDAP (unencrypted) , run
docker-compose up -dto recreate container using the updated image - If you are using LDAPS (unencrypted) and is updating Nextcloud app, run
docker-compose up -d --buildto rebuild the container image with root CA injection
For mobile app login to work, you will need to edit the config.php in config/nextcloud/config/ directory. Add the following lines with your Nextcloud instance's information.
'overwrite.cli.url' => 'https://nextcloud.example.com',
'overwriteprotocol' => 'https',