This is a nextcloud setup script using docker-compose, based on wonderfall/docker image.
Please make sure that you have docker-compose installed, the script has been tested under ubuntu 16.04.4 LTS.
To install docker compose: Download from https://github.com/docker/compose/releases. The website have provided two ways of download.
I have set up the script based on using MySQL/MariaDB for database dependency. If you wish to use other database dependency, please change the depend on section, as well as script from line 34. I have been given out clear notation and it will be easy to find :).
Also please change yourpassword and yourusername into your actrual password and username, leave nextcloud database configuration as it.
To build using docker-compose:
sudo docker-compose up -d
After that your docker service with database dependency will be installed, to use service please maunally expose docker port, for example, expose to 2333
docker run -i --expose=2333 yourdockerimageid bash
After install and expose your port, you can launch into the website for nextcloud: yourip:yourport.
It is also desirable to setup SSL Connection after install.
- Docker service might have to restart due to downage of inactivate.
- Not suitable for Vultr 2.5 dollar/month machine due to its low space.
If there are any issue or improvement please feel free to open up issue or send pull request.