# Node-RED docker with persistent themes

**URL:** <https://discourse.nodered.org/t/node-red-docker-with-persistent-themes/59911>\
**Category:** General\
**Created:** [16 March 2022 07:03 UTC](https://discourse.nodered.org/t/node-red-docker-with-persistent-themes/59911 "2022-03-16T07:03:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![szafran81](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/szafran81/32/58551_2.png) [@szafran81](https://discourse.nodered.org/u/szafran81)\
**Post date:** [16 March 2022 07:03 UTC](https://discourse.nodered.org/t/node-red-docker-with-persistent-themes/59911/1 "2022-03-16T07:03:47Z")

</div>

Hi,

I've just moved from Home Assistant OS to a dockerized installation. Just finishing the configs now.  
I'm wondering is there a way to make installed themes persistent?  
Now after executing "docker-compose up" and using "npm i @node-red-contrib-themes/dark" to install the theme I need to do a "docker restart nodered" and it works. But after doing "docker-compose down" and then "docker-compose up -d" I need to install the theme again.  
How can I make it so I won't have to reinstall the theme after each docker-compose up/down cycle ?

* * *

Szafran

---

<div class="post-metadata">

**Author:** ![szafran81](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/szafran81/32/58551_2.png) [@szafran81](https://discourse.nodered.org/u/szafran81)\
**Post date:** [16 March 2022 07:27 UTC](https://discourse.nodered.org/t/node-red-docker-with-persistent-themes/59911/2 "2022-03-16T07:27:25Z")

</div>

Ok. I've managed to make it work.

For anyone looking for an answear:  
locate the dir where you have your "/config" persistent volume mounted,  
and go into node\_modules folder  
then create a folder named: "@node-red-contrib-themes"  
after that go into that created folder  
now you need to either download the theme files or locate a theme repo and clone it here  
like that: "git clone [GitHub - node-red-contrib-themes/dark: A dark theme for Node-RED](https://github.com/node-red-contrib-themes/dark.git)"  
now just change the theme in settings.js

That's it.

* * *

Szafran

---

<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:** [30 March 2022 07:28 UTC](https://discourse.nodered.org/t/node-red-docker-with-persistent-themes/59911/3 "2022-03-30T07:28:25Z")

</div>

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