| 12345678910111213141516171819202122 |
- version: "2.1"
- services:
- openssh-server:
- image: ghcr.io/linuxserver/openssh-server
- container_name: openssh-server
- hostname: openssh-server #optional
- environment:
- - PUID=1000
- - PGID=1000
- - TZ=Asia/Hongkong
- # - PUBLIC_KEY= #optional
- # - PUBLIC_KEY_FILE=/path/to/file #optional
- - SUDO_ACCESS=false #optional
- - PASSWORD_ACCESS=true #optional
- - USER_PASSWORD=110010111000 #optional
- - USER_PASSWORD_FILE=/path/to/file #optional
- - USER_NAME=sesame_open #optional
- volumes:
- - ./config:/config
- ports:
- - 9122:2222
- restart: "no"
|