How to create named volume in docker compose file for mounted external ntfs drive?

That explains why it didn’t work out.

Is there a way I can store the path somewhere in docker compose file (not another .env file or Dockerfile) and use it all the time including let docker create the html folder if it doesn’t exist?

The extensions part sort of meet my needs if I can store /media/…/html into a variable and use it all the time, but I’m not sure how to use it correctly in this case.
Maybe this is another separated question. I can open another topic if you like.

Thanks.