From 05c9b0a7a0121c840a9f2160b0fb2ada8a81f215 Mon Sep 17 00:00:00 2001 From: sthope Date: Sat, 4 Sep 2021 23:07:56 +0200 Subject: [PATCH] Add 'docker_portainer_stacks/openssh-server.yml' --- docker_portainer_stacks/openssh-server.yml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docker_portainer_stacks/openssh-server.yml diff --git a/docker_portainer_stacks/openssh-server.yml b/docker_portainer_stacks/openssh-server.yml new file mode 100644 index 0000000..6cfe44a --- /dev/null +++ b/docker_portainer_stacks/openssh-server.yml @@ -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: \ No newline at end of file