sshpiper/sshpiperd/e2e/docker-compose.yml
2018-12-29 06:13:14 +00:00

43 lines
868 B
YAML

version: '3'
services:
client:
image: rsalian/centos-sshpass
volumes:
- workingdir:/workingdir
- localkey:/local
- host1ssh:/host1
- names:/names
- ./test.sh:/test.sh
links:
- "piper:piper"
command:
- "/bin/bash"
- "/test.sh"
piper:
environment:
- "SSHPIPERD_WORKINGDIR_NOCHECKPERM=true"
- "SSHPIPERD_AUDITOR=typescript-logger"
- "SSHPIPERD_CHALLENGER=welcometext"
- "SSHPIPERD_CHALLENGER_WELCOMETEXT=hellopiper"
build: ../..
links:
- "host1:host1"
- "host2:host2"
volumes:
- workingdir:/var/sshpiper
host1:
image: rastasheep/ubuntu-sshd
volumes:
- host1ssh:/root/.ssh
- names:/names
host2:
image: rastasheep/ubuntu-sshd
volumes:
- names:/names
volumes:
workingdir:
localkey:
host1ssh:
names: