docker-compose.yml 432 B

12345678910111213141516171819202122
  1. version: '2'
  2. volumes:
  3. host_keys:
  4. config_alice:
  5. config_bob:
  6. services:
  7. ssh_bastion:
  8. build: .
  9. image: fphammerle/ssh-bastion
  10. environment:
  11. USERS: alice,bob
  12. volumes:
  13. - host_keys:/etc/ssh/host_keys:rw
  14. - config_alice:/home/alice/.ssh:ro
  15. - config_bob:/home/bob/.ssh:ro
  16. ports:
  17. - '0.0.0.0:2222:22'
  18. restart: unless-stopped
  19. # https://docs.docker.com/compose/compose-file/compose-file-v2/