Advertisement
Guest User

Untitled

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