Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- main:
- build: .
- depends_on:
- - ssh
- ssh:
- image: maltyxx/sshd
- container_name: container-ssh
- volumes:
- - ~/Dropbox/important/db:/home/user/share/db
- - /tmp/.X11-unix:/tmp/.X11-unix
- - ~/.ssh/id_rsa.pub:/home/user/.ssh/keys/id_rsa.pub:ro
- expose:
- - "8512"
- - "8513"
- - "22"
- ports:
- - "8512:8512"
- - "8513:8513"
- - "2222:22"
- environment:
- DISPLAY: $DISPLAY
- hostname: "ssh"
- command: "user:password:1001:1001"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement