Yup, my NAS is always on, but when not running docker, it will go into sleep mode that saves more than the Pi will consume. And now I can suspend the NAS when the power fails and my UPS takes over. With the Syno running the UPS runs for about 35 minutes, only the Pi will run for 3 hours (according to the data the UPS gives).
I have been going back and forth on this, because I like the computing power the NAS has, (I had Pimatic running on a Pi B+ before, and that is slow!), and the sandbox docker provides gives an extra layer of protection from the big bad internet.
What I would like to do is use the Pi as the main data collection device with the database. Then run a sandboxed pimatic instance with it’s own config but READING from the SQLite db. (I’m not sure what protocol it uses, but I have seen an example from another user who used a remote db over TCP.) That pimatic is mainly to give me and my fellow house mates a glimpse on what’s going on in the house. There will be a few controls there but they will be made through API calls, so no direct manipulation of the db from the remote pimatic.
All this is to protect my house from digital invasion.
I’m probably overthinking everything… Story of my life!
Edit.: @petschni where do you store the db in your dockerfile? Because if it stays in the container, after a restart of the DS (like after an update), all the historic date will be gone…