linuxserver/docker-homeassistant

[FEAT] Add custom log file location

Closed this issue · 3 comments

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Home Assistant added a CLI arg to allow for a different log path. As this is useful on cases that we want to write logs to ramdisk, this seems to be good to expose here as well.

home-assistant/core#9422

Reason for change

Allow for configurations with ephermeral logging supported already by home assistant

Proposed code change

No response

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

I'm not suggesting for this not to be implemented, but docker respects mount order, so until it is implemented you can simply mount the file to your ramdisk

    volumes:
      - /path/to/config:/config
      - /path/to/ramdisk/home-assistant.log:/config/home-assistant.log

I think I would rather stick with the suggestion above, it is the best way to deal with this in my opinion as we'd only be telling the file to go elsewhere in the container, that you'd need to pick up with a bind mount regardless.

Good suggestion from @barrelltitor