Streamline Nextcloud Installation on CasaOS with BigBearCasaOS

Yeah I am going to have to find a better way to set up a home server
this is not going to work on the pi5 for me
now I have to work out how to uninstall casaos
pi5 is annoying
ok uninstall was very easy
thank you for all your help

Appreciate this! Can you explain how to utilize a CIFS mount for the user data dir? I mapped the container /var/www/html/data path to the mount in NextCloud settings in CasaOS to no avail.

I’ll try to explain it:

  1. Manually mount the CIFS share:
sudo mount -t cifs -o username=your_user,password=your_pass //server_ip/share_name /mnt/nextcloud_data
  1. Add it to /etc/fstab for persistence:
//server_ip/share_name /mnt/nextcloud_data cifs username=your_user,password=your_pass,uid=33,gid=33,iocharset=utf8 0 0

Tip: You can store your credentials in a separate file (e.g., /root/.cifs_credentials) for better security. Format:

username=your_user
password=your_pass

Then modify /etc/fstab:

//server_ip/share_name /mnt/nextcloud_data cifs credentials=/root/.cifs_credentials,uid=33,gid=33,iocharset=utf8 0 0
  1. Update Docker Compose or Docker run to map the CIFS share:
volumes:
  - /mnt/nextcloud_data:/var/www/html/data
  1. Set permissions so Nextcloud can access it:
sudo chmod -R 755 /mnt/nextcloud_data
  1. Restart the container and verify in Nextcloud.

Always backup any data that’s important.