fix(node-agent): mount host SSH key into container for event shipping

Nodes ship events to VPS via rsync+SSH. The container runs as root
and uses the default SSH identity, which must be at /root/.ssh/.
Mount /home/oskar/.ssh from the host read-only so the existing
authorized key is available inside the container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Oskar Kapala 2026-05-27 13:59:28 +02:00
parent 96bf32614f
commit 65bac4ebfe
3 changed files with 6 additions and 0 deletions

View file

@ -7,3 +7,5 @@ services:
- VPS_EVENTS_USER=oskar
- VPS_EVENTS_PATH=/opt/homelab/events
- CHECK_INTERVAL=60
volumes:
- /home/oskar/.ssh:/root/.ssh:ro

View file

@ -7,3 +7,5 @@ services:
- VPS_EVENTS_USER=oskar
- VPS_EVENTS_PATH=/opt/homelab/events
- CHECK_INTERVAL=60
volumes:
- /home/oskar/.ssh:/root/.ssh:ro

View file

@ -7,3 +7,5 @@ services:
- VPS_EVENTS_USER=oskar
- VPS_EVENTS_PATH=/opt/homelab/events
- CHECK_INTERVAL=60
volumes:
- /home/oskar/.ssh:/root/.ssh:ro