# How to run node-red + wireguard in docker?

**URL:** https://discourse.nodered.org/t/how-to-run-node-red-wireguard-in-docker/73869
**Category:** General
**Tags:** docker
**Created:** [18 January 2023 13:58 UTC](https://discourse.nodered.org/t/how-to-run-node-red-wireguard-in-docker/73869 "2023-01-18T13:58:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![orrinen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/orrinen/32/81311_2.png) [@orrinen](https://discourse.nodered.org/u/orrinen)
#### Post date: [18 January 2023 13:58 UTC](https://discourse.nodered.org/t/how-to-run-node-red-wireguard-in-docker/73869/1 "2023-01-18T13:58:03Z")

</div>

Good evening.

I have an application in node-red which need a connection to a remote VPN server(over wan/internet). This to make sure that the node red app always have access to the remote site i want to connect it to. The node red application should relay all data via Wireguard client and out on wireguard network(which would consits of 3 peers after plan)

I want to containerize it all, because i belive it would be easier to later scale it up if necessary. (still small scale). By scaling up i mean, increase number of Node Red and Wireguard pairs for different respective remote sites. So 1 WG and NR pair per remote site.

If docker is not a good idea, then what else would be?  
The question is how to orchestrate this for simplicity and reliability? The docker tool i plan to use for management is portainer.

I want to follow the docker rule of "1 container per service" and use bridges for each pair.

---

<div class="post-metadata">

### Author: ![tve](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tve/32/59475_2.png) [@tve](https://discourse.nodered.org/u/tve)
#### Post date: [18 January 2023 16:35 UTC](https://discourse.nodered.org/t/how-to-run-node-red-wireguard-in-docker/73869/2 "2023-01-18T16:35:21Z")

</div>

What have you found so far?  
A quick search brings up [awesome-compose/wireguard at master · docker/awesome-compose · GitHub](https://github.com/docker/awesome-compose/tree/master/wireguard) for wireguard.  
I can't help with tools like portainer but if you have issues at the docker level I may be able to help.

---

<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: [19 March 2023 16:35 UTC](https://discourse.nodered.org/t/how-to-run-node-red-wireguard-in-docker/73869/3 "2023-03-19T16:35:27Z")

</div>

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