40 lines
724 B
YAML
40 lines
724 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"
|
|
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:
|