How to update a docker instance

I am running a few services on my own server, such as Immich as Google Photos replacement, and OwnCloud with OnlyOffice as Google Drive/Docs replacement. I’m running everything in separate docker instances on an ARM VPS with 4 cores and 24gb ram

To update a service, ssh into the server and if needed do a sudo -i to elevate to root user.

cd into the docker dir that has the docker-compose.yml for this service in it.

Stop the service: docker compose down

Update the service: docker compose pull

Start the service: docker compose up -d