# How to test subflow-module in docker-compose instance

**URL:** <https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328>\
**Category:** Developing Nodes\
**Created:** [18 June 2021 12:04 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328 "2021-06-18T12:04:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![novski](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/novski/32/23243_2.png) [@novski](https://discourse.nodered.org/u/novski)\
**Post date:** [18 June 2021 12:04 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328/1 "2021-06-18T12:04:37Z")

</div>

How can I install my local subflow-module inside my docker-compose instance of node-red?

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [18 June 2021 12:35 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328/2 "2021-06-18T12:35:27Z")

</div>

Have a look at [GitHub - janvda/docker-compose-with-node-red-flows: Sample docker-compose application consisting of a simple node-red application including its flows. The Node-RED flows in this github repository can be updated using the Node-RED editor in combination with Node-RED's project functionality.](https://github.com/janvda/docker-compose-with-node-red-flows)

---

<div class="post-metadata">

**Author:** ![novski](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/novski/32/23243_2.png) [@novski](https://discourse.nodered.org/u/novski)\
**Post date:** [19 June 2021 12:19 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328/3 "2021-06-19T12:19:04Z")

</div>

Well sure, that is one possibility. But it seams like a workaround.  
There must exist a direct solution. Even if it's harder, I'm interested to see how it works.  
Accessing the Docker instance and installing an npm dependency must be somehow possible.

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [20 June 2021 09:30 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328/4 "2021-06-20T09:30:55Z")

</div>

> [@novski](#):
>
> How can I install my local subflow-module inside my docker-compose instance of node-red?

I think I have misunderstood your question.

What do you exactly mean by "local subflow-module" ?  
I thought you wanted your node-red flow files being part of your docker-compose github repository.

---

<div class="post-metadata">

**Author:** ![novski](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/novski/32/23243_2.png) [@novski](https://discourse.nodered.org/u/novski)\
**Post date:** [20 June 2021 12:20 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328/5 "2021-06-20T12:20:54Z")

</div>

No, I am not interested in the deployment of node-red with modules.  
I have made a [subflow-module](https://nodered.org/docs/creating-nodes/subflow-modules) (this is a very new feature and does only work for \>V1.3)  
Now I would like to test it locally before pushing it to npm.  
But I do not know how to enter the docker instance and install it from my local storage.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 June 2021 12:25 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328/6 "2021-06-20T12:25:57Z")

</div>

You can install local npm packages by the following methods...

1. `npm install path/to/my/package/folder`

or

1. prepare the package using `npm pack` then you will get the file `my-node-1.0.0.tgz` which you can install at runtime via the palette manager  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a58afc13851af8f63e6562bd223f89c266582aa.png)

---

<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:** [4 July 2021 12:26 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328/7 "2021-07-04T12:26:05Z")

</div>

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