In my ddev container, I configured multiple vhosts in Apache using conf files in sites-available that I added and enabled in the Dockerfile. In the docs, it is said that we should use $WEBSERVER_DOCROOT which is /var/www/html by default but this value is not available in any custom conf files (apache-site.conf or sites-available files). So I had to hardcode it and furthermore I had to do this in each conf file because I was unable to define a value for all vhosts and share it.
My Dockerfile :
ADD sites-available/my.site1.tld.conf /etc/apache2/sites-available
RUN a2ensite my.site1.tld
My conf files : my.site1.tld.conf :
<VirtualHost *:80>
ServerName my.site1.tld
DocumentRoot $WEBSERVER_DOCROOT/my.site1.tld/www
</VirtualHost>