This is a simple script to help you get up and running with nextcloud in a docker container (docker compose).
you will need a server you can easly get started with Digital Ocean referral link.
Start with conecting to your server, with ssh. The commands will be for bash (Linux).
clone the repo to the server
git clone https://github.com/JoshBlades/ncbuilder.git
Then go in to the folder and make the script executable.
cd ncbuilder
chmod +x generate-password.sh setup.sh
You will need to configure the .env file (this is a hidden file). The main thing to set is the email and the url
TRAEFIK_LETSENCRYPT_EMAIL=
NEXTCLOUD_URL=
the mariadb password will be set by the generate passwords script that will gerate random hex values as passwords. so run
./generate-password.sh
And now all you need to do is run
./setup.sh
when this command has finished you can now go to your website nextcloud.myurl.com
If it all works you can start the server by docker compose with this command.
sudo docker-compose up -d
to stop all the containers with
sudo docker-compose down