🐛 Fix that known_hosts are discarded on container update

This commit is contained in:
Stefan Haun 2022-09-06 20:01:23 +02:00
parent 8617f84f9d
commit e22f0a4fb0

View file

@ -89,6 +89,9 @@
- 127.0.0.1:9002:1880 - 127.0.0.1:9002:1880
volumes: volumes:
- "{{ nodered_data }}/data:/data" - "{{ 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 detach: yes
keep_volumes: yes keep_volumes: yes
restart_policy: unless-stopped restart_policy: unless-stopped