Firstly connect your CasaOS GUI with your favourite browser, then press Install a customized app.
Press import
Installing Nextcloud with Docker Compose File
Then copy and paste Docker Compose file inside
Why I did Choose lscr.io/linuxserver/nextcloud:latest Image Instead of nextcloud:latest?
When I installed with nextcloud:latest some php plugins (like bz2…) not pre-installed.
Cron not pre-installed and configured.
lscr image has all but you must configure cron manually.
Check if you have miss something like this…
Fix like this…
Install it
**When you press Nextcloud you’ll see something like this, becouse we configured this just use HTTPS port, if you want to use Nextcloud with HTTP, add Host => 10080 Container => 80 and change Web UI port to 10080 (If you edited image with settings and not working, uninstall nextloud and reinstall again, then apply this settings).
I recommend to use a reverse proxy such as nginx and caddy…
Installing MariaDB with Docker Compose File
We paste this Docker Compose file into place, just like we did in Nextcloud.
Check for type errors and fixing it
Starting Nextcloud with MariaDB
We’ll press Storage & Database and configuring like this…
Database user = user
Database password = password
Database name = nextcloud
Database host = 192.168.1.20 (this is my example local ip, you must enter your local ip)Then press install and enjoy :)