Running vaultwarden and nextcloud on same hardware behind caddy

I have various docker containers on my Raspberry Pi. Among other things, vaultwarden in connection with caddy as a reverse proxy. I use docker-compose to manage the containers.
I would now also like to install nextcloud and run it behind caddy. What would be the right way to do this with docker? Do I need a second FQDN pointing to the same IP? A few basic tips on how best to solve the problem would be very helpful.

Nextcloud might need multiple sub-domains, check their documentation how to set it up.