Altering log file location in existing Home Assistant Docker Container

The Home Assistant published Docker container running on a Raspberry Pi is configured to have log files resident in the application directory rather than in /var/log. Because these Raspberry Pi installations typically use Micro SD cards which have a limited number of writes, it is often advantageous to use DietPi as an o/s as they offer a preconfigured /var/log directory that resides in a RAM disk. Since I do not have the skill to rebuild the Home Assistant Docker container, I wanted to see if it was possible reconfigure it to use the /var/log for the specific log files. My attempts have been a failure up to this point. Below is what I have tried:

Setup system logging

$ sudo journalctl -u systemd-tmpfiles-setup
$ sudo systemctl status systemd-tmpfiles-setup

Forward those logs

$ sudo nano /etc/tmpfiles.d/home-assistant.conf

d /var/log/homeassistant.log 0755 root root - -
f /srv/homeassistant/home-assistant.log 0644 root root - -

Add the bolded command to the published Home Assistant local Docker container creation command with:

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -e TZ=America/Los_Angeles \
  -v /srv/homeassistant:/config \
  **-v /var/log/home-assistant.log:/config/home-assistant.log \**
  --network=host ghcr.io/home-assistant/home-assistant:stable

As I said this has not worked.

Any suggestions or ideas?

Why not just create a ramdisk on host

sudo mkdir /tmp/ramdisk
sudo chmod 777 /tmp/ramdisk
sudo mount -t tmpfs -o size=1024m myramdisk /tmp/ramdisk

And mount it into the container?

docker run -d \
  -v /tmp/ramdisk:/var/log \
  …

Note that the ramdisk here has a fixed size!