Skip to main content

Installing NextCloud on CasaOS

The method used here uses 2 containers for setup. The first container is the official NextCloud Cocker container. The second container is the YobaSystems MariaDB container.

You can download the .json files for this project over on Patreon.

Database Install

The first thing we need to do is setup a database for the NextCloud container.

From the CasaOS dashboard, click the + App button and then click the Custom Install button.

On the next page, fill out the boxes with the following information:

  • Docker Image: yobasystems/alpine-mariadb:latest
  • App Name: NextCloud Database
  • Icon URL: Leave it as is or change it to an icon URL you want to use
  • Web UI: 3306
  • Network: bridge
  • Ports: 3306:3306
  • Volumes:
    • /home/databases/NextCloudDB:/var/lib/mysql
  • Environmental Variables:
    • MYSQL_ROOT_PASSWORD:password
    • MYSQL_DATABASE:nextcloud
    • MYSQL_USER:nextcloud
    • MYSQL_PASSWORD:password
  • Restart: Always

Everything else can be left as-is.

The location of the volume needs to be changed to where you want to store your databases.

Be sure to change the password fields to something more secure.

Click the Install button and wait for the container to deploy.

NextCloud Install

From the CasaOS dashboard, click the + App button and then click the Custom Install button.

On the next page, fill out the boxes with the following information:

  • Docker Image: nextcloud:latest
  • App Name: NextCloud
  • Icon URL: Leave it as is or change it to an icon URL you want to use
  • Web UI: 8181
  • Network: bridge
  • Ports: 8181:80
  • Volumes:
    • /home/configs/NextCloud/WWW:/var/www/html
    • /home/configs/NextCloud/Apps:/var/www/html/custom_apps
    • /home/configs/NextCloud/Configs:/var/www/html/config
    • /home/configs/NextCloud/Data:/var/www/html/data
  • Environmental Variables:
    • MYSQL_DATABASE:nextcloud
    • MYSQL_USER:nextcloud
    • MYSQL_PASSWORD:password
    • MYSQL_HOST:192.168.1.130:3306
  • Restart: Always

Everything else can be left as-is.

The location of the volumes need to be changed to where you want to store your databases.

The MYSQL_HOST IP address should be the IP Address of your CasaOS server where the database is installed.

Be sure to change the password fields to match your database setup

Click the Install button and wait for the container to deploy.

Once the container has deployed, you can go to http://192.168.1.130:8181 (of course change the IP and the port to your setup).

You'll be asked to create a user account. Do that and then decide if you want to install the recommended apps by checking or unchecking the appropriate box. 

Then click "Finish Setup" and wait for the application to install.

If everything goes well, you will NOT see any errors. There will be a spinning circle in the middle of the screen for a few moments and then you'll be taken to the welcome screen for NextCloud.

If you get an error, be sure to read what it says and correct any errors that it tells you that it has encountered and then try the setup again.