# Saving time series data from docker container

**URL:** <https://discourse.nodered.org/t/saving-time-series-data-from-docker-container/82469>\
**Category:** General\
**Tags:** docker, mqtt\
**Created:** [30 October 2023 10:39 UTC](https://discourse.nodered.org/t/saving-time-series-data-from-docker-container/82469 "2023-10-30T10:39:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![polareisbaer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/polareisbaer/32/84274_2.png) [@polareisbaer](https://discourse.nodered.org/u/polareisbaer)\
**Post date:** [30 October 2023 10:39 UTC](https://discourse.nodered.org/t/saving-time-series-data-from-docker-container/82469/1 "2023-10-30T10:39:09Z")

</div>

Hello,  
I am using node-red in a docker container. The persistent data is stored outside the container in a named data volume. But the time series data from mqtt is lost every time the container is restarted. Is there a way to store this data as well, so that not all graphs are empty at every restart?

Thanks,  
Ralf

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 October 2023 12:18 UTC](https://discourse.nodered.org/t/saving-time-series-data-from-docker-container/82469/2 "2023-10-30T12:18:58Z")

</div>

Welcome to the forum @polareisbaer

Are you storing the time series data, or are you relying on the chart to keep the data?

---

<div class="post-metadata">

**Author:** ![polareisbaer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/polareisbaer/32/84274_2.png) [@polareisbaer](https://discourse.nodered.org/u/polareisbaer)\
**Post date:** [30 October 2023 12:31 UTC](https://discourse.nodered.org/t/saving-time-series-data-from-docker-container/82469/3 "2023-10-30T12:31:27Z")

</div>

Hello,  
I keep the data only in the chart. So I want to keep the charts.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 October 2023 13:23 UTC](https://discourse.nodered.org/t/saving-time-series-data-from-docker-container/82469/4 "2023-10-30T13:23:47Z")

</div>

This should help. [Simple save and restore for node-red-dashboard chart (flow) - Node-RED](https://flows.nodered.org/flow/92920b4fd450bf92a3035e061947daa0)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 October 2023 13:45 UTC](https://discourse.nodered.org/t/saving-time-series-data-from-docker-container/82469/5 "2023-10-30T13:45:32Z")

</div>

Of course, there are many ways to do this in Node-RED. Colin showed 1 but you could equally set up a file-based context store and use that instead.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 December 2023 13:45 UTC](https://discourse.nodered.org/t/saving-time-series-data-from-docker-container/82469/6 "2023-12-29T13:45:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
