Add 'docker_portainer_stacks/openssh-server.yml'
This commit is contained in:
parent
3d68e66445
commit
05c9b0a7a0
27
docker_portainer_stacks/openssh-server.yml
Normal file
27
docker_portainer_stacks/openssh-server.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
openssh-server:
|
||||||
|
image: ghcr.io/linuxserver/openssh-server
|
||||||
|
container_name: openssh-server
|
||||||
|
hostname: openssh-server #optional
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=Europe/Amsterdam
|
||||||
|
- PUBLIC_KEY=yourpublickey #optional
|
||||||
|
- PUBLIC_KEY_FILE=/path/to/file #optional
|
||||||
|
- PUBLIC_KEY_DIR=/path/to/directory/containing/_only_/pubkeys #optional
|
||||||
|
- SUDO_ACCESS=false #optional
|
||||||
|
- PASSWORD_ACCESS=false #optional
|
||||||
|
- USER_PASSWORD=password #optional
|
||||||
|
- USER_PASSWORD_FILE=/path/to/file #optional
|
||||||
|
- USER_NAME=linuxserver.io #optional
|
||||||
|
volumes:
|
||||||
|
- openssh-server-config:/config
|
||||||
|
ports:
|
||||||
|
- 2222:2222
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
openssh-server-config:
|
Loading…
x
Reference in New Issue
Block a user