Skip to content

Simple docker service to allow ssh connection to a specific directory

Notifications You must be signed in to change notification settings

Intellisrc/docker-openssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

Simple service to access a directory with ssh

Environment

ENV USER 
ENV PASSWORD 

Docker Swarm

Example:

version: '3.9'
    
services:
  ssh:
    image: intellisrc/openssh
    volumes:
      - type: bind
        source: "/private/dir/"
        target: "/home/"
    ports:
      - published: 2222
        target: 22
        protocol: tcp
        mode: host   
    environment:
      USER_ID: 1000
      GROUP_ID: 1000
      USER: open
      GROUP: ssh
      PASSWORD: ********************
    deploy:
      mode: replicated
      replicas: 1
      endpoint_mode: dnsrr
      placement:
        constraints: 
          - node.role == worker

About

Simple docker service to allow ssh connection to a specific directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published