HA Docker+Records config?

Little new to Docker as a whole but used it to setup HA on my previous daily driver PC that’s been repurposed to run HA (and soon will be driving a local
web accessible NAS, etc).

I’d like to be able to display data from before HA restarts which is, in theory, weekly (I have a cron job that will do an upgrade of all apps on the machine, then a docker compose pull, then up, then prune images and volumes. This could mean that I lost the data from anything before 7 days ago so I’m looking to configure a way that I can store, say, 90 days of data (or more) as I have docker and the OS running on a 256GB SSD. Searched around for almost 30 minutes today and couldnt find anything. Anyone have any advice on setting up something that will handle this? Almost everything I can find is for HAOs to MariaDB or similar; nothing involving getting the data out into a SQL docker container, config, etc.

Thanks!

This is what history and recorder do. Not sure what your exact issue is.

If data is not retained after restart you likely setup you docker compose/run incorrectly and do not properly mount data folders. This is true for docker and any db container you use or built in sql

What do you want exactly? I can post my compose with Marian. SQL and compose is basically same.

Welp I am apparently an idiot. I was looking at a single entity which was only giving me about 10 days of data… If I use history and how an entire area I am seeing weeks. Sorry for the headache :slight_smile:

1 Like