Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. version: '2'
  2. services:
  3. main:
  4. build: .
  5. depends_on:
  6. - ssh
  7. ssh:
  8. image: maltyxx/sshd
  9. container_name: container-ssh
  10. volumes:
  11. - ~/Dropbox/important/db:/home/user/share/db
  12. - /tmp/.X11-unix:/tmp/.X11-unix
  13. - ~/.ssh/id_rsa.pub:/home/user/.ssh/keys/id_rsa.pub:ro
  14. expose:
  15. - "8512"
  16. - "8513"
  17. - "22"
  18. ports:
  19. - "8512:8512"
  20. - "8513:8513"
  21. - "2222:22"
  22. environment:
  23. DISPLAY: $DISPLAY
  24. hostname: "ssh"
  25. command: "user:password:1001:1001"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement