Skip to content

Instantly share code, notes, and snippets.

@dberardo-com
Last active November 29, 2021 21:33
Show Gist options
  • Save dberardo-com/43ee2482dd24b7506cc00da171347058 to your computer and use it in GitHub Desktop.
Save dberardo-com/43ee2482dd24b7506cc00da171347058 to your computer and use it in GitHub Desktop.
version: "3.7"
volumes:
keys-server:
keys-client:
# sshfs-volume-mount-example:
# driver: vieux/sshfs:latest
# driver_opts:
# reconnect: ""
# ServerAliveInterval: 15
# ServerAliveCountMax: 3
# allow_other: ""
# sshcmd: "linuxserver.io@localhost:2222:/tmp"
services:
ssh-server:
image: linuxserver/openssh-server
container_name: server
ports:
- 2222:2222
volumes:
- keys-server:/config/.ssh/
command: sleep 100000
ssh-client:
image: linuxserver/openssh-server
privileged: true #needed for test only
container_name: client
volumes:
- keys-client:/root/.ssh/
command: sleep 100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment