Add the below lines to the /etc/apache2/apache2.conf file, the restart the container.
nano /etc/apache2/apache2.conf
Redirect 301 /.well-known/carddav https://domain.com/remote.php/dav
Redirect 301 /.well-known/caldav https://domain.com/remote.php/dav
Redirect 301 /.well-known/webdav https://domain.com/remote.php/dav