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:

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.


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