From e22f0a4fb0e75676d36736dd0e238871b25c7089 Mon Sep 17 00:00:00 2001
From: Stefan Haun <tux@netz39.de>
Date: Tue, 6 Sep 2022 20:01:23 +0200
Subject: [PATCH] :bug: Fix that known_hosts are discarded on container update

---
 radon.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/radon.yml b/radon.yml
index b019a60..9d62b74 100644
--- a/radon.yml
+++ b/radon.yml
@@ -89,6 +89,9 @@
           - 127.0.0.1:9002:1880
         volumes:
           - "{{ nodered_data }}/data:/data"
+          # Mount the .ssh/known_hosts, otherwise the host must be confirmed
+          # (via docker exec) every time the container is updated.
+          - "{{ nodered_data }}/known_hosts:/usr/src/node-red/.ssh/known_hosts:rw"
         detach: yes
         keep_volumes: yes
         restart_policy: unless-stopped