How to upgrade Nextcloud in portainer

Hello! I am new to using Nextcloud in portainer. I have set it up and it runs well. However I am not sure how to upgrade nextcloud in the docker enviorment in portainer. I saw some Youtube video like this (https://www.youtube.com/watch?v=wiquPvkfOsw&t=116s) but I am not sure if it is the best and safest way to do that. Can someone shed some light? Thank you!

Depends on the image, but in general:

  • backup data (files) + database (which you should already be doing hopefully - not just at upgrade time!)
  • docker compose pull
  • docker compose up -d

Portainer is a GUI on top of Docker. There may be some additional ways in Portainer, but the gist is the same.