docker-compose.yml 618 B

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