Merge pull request '🐛 Fix that known_hosts are discarded on container update' (!77) from nodered-known_hosts into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/77
Reviewed-by: dkdent <dkdent@netz39.de>
This commit is contained in:
Stefan Haun 2022-09-06 23:36:23 +00:00
commit ac46e1dd7c

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