This repo is intended to help migrate an existing Nextcloud VM installation to a Docker container. The Docker container will use the existing Postgresql Database (and it may update it) and the existing datadir.
This subfolder, and the migration tool have not been tested by the main maintainers of this repo. We put this here solely for inspiration, and you're on your own if something fails. We would still appreciate if you told us what went wrong though, by creating an issue.
How to use:
- clone git
- cd nc_migration
- chmod +x migrate.sh
- sudo ./migrate.sh destinationdir nc_username nc_password nc_port
- change the trusted_domainssection in the config/config.php file to you needs
- run it: 'docker-compose up-d'
Explanation of the bash script arguments:
- destinationdir = the folder containing all the files needed to run the Docker container
- nc_user = the Nextcloud administrator user
- nc_password = password for this user
- nc_port = port exposed by the container
TBD:
- Implement SSL
- Change bash script to include 'help' section and to be more versatile
- Add redis