Update aio with docker compose

All I need to know is how to update Nextcloud all-in-one with Docker Compose. Is it just as simple as this:

cd AIO-DIR
docker compose down
docker compose pull
docker compose up -d

or do I need to do more with Docker?

Also just to note I know they have docker instructions but I mean docker compose.

https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-stopstartupdate-containers-or-trigger-the-daily-backup-from-a-script-externally

Thanks but when I run this I get
nc: getaddrinfo for host "nextcloud-aio-apache" port 443: Name does not resolve