Skip to content

Commit

Permalink
feat(docker): 🔊 add hint to use recommended ssh client config
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherStranger committed Jul 6, 2024
1 parent d0c2343 commit d26ac4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: '3'

services:
borg:
image: ghcr.io/anotherstranger/borg-server:latest
#image: ghcr.io/anotherstranger/borg-server:latest
build: .

environment:
# Specify you public ssh keys here. You can also separate keys by adding \n
Expand Down
11 changes: 11 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,16 @@ echo "Following borg repos are present:"
du -sh /home/borg/backups/*
echo "Size of all backups combined: $(du -sh /home/borg/backups)"

echo ""
echo "It is recommended to add the following entry to your clients ~/.ssh/config:"
echo "Host borgbackup"
echo " Hostname <IP_OR_HOST_HERE>"
echo " User borg"
echo " Port <PORT>"
echo " ServerAliveInterval 10"
echo " ServerAliveCountMax 30"
echo " IdentityFile <OPTIONAL_PATH_TO_YOUR_KEYFILE>"
echo ""
echo "For further information refer to: https://borgbackup.readthedocs.io/en/stable/usage/serve.html#ssh-configuration"

exec /usr/sbin/sshd -D -e

0 comments on commit d26ac4b

Please sign in to comment.