docker-compose.yml 636 B

1234567891011121314151617181920212223
  1. version: "2.1"
  2. services:
  3. my-sshd:
  4. # image: ghcr.io/linuxserver/openssh-server
  5. image: 6865dfe40381
  6. container_name: my-opensshd
  7. hostname: openssh-server #optional
  8. environment:
  9. - PUID=1000
  10. - PGID=1000
  11. - TZ=Asia/Hongkong
  12. # - PUBLIC_KEY= #optional
  13. # - PUBLIC_KEY_FILE=/path/to/file #optional
  14. - SUDO_ACCESS=false #optional
  15. - PASSWORD_ACCESS=true #optional
  16. - USER_PASSWORD=110010111000 #optional
  17. # - USER_PASSWORD_FILE=/path/to/file #optional
  18. - USER_NAME=sesame_open #optional
  19. volumes:
  20. - ./config:/config
  21. ports:
  22. - 9122:2222
  23. restart: "no"