Container based SSH/SFTP rental space
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
log added command-line options Dec 31, 2018
ssh-server added setting of uid Jan 1, 2019
syslog-server added README on syslog-server Dec 29, 2018
.gitignore added command-line options Dec 31, 2018
Compose.py added setting of uid Jan 1, 2019
README.md
container-credentials.csv.sample updated README.md Dec 30, 2018
docker-compose.yml.template
main.py added -h option Jan 1, 2019

README.md

ssh-rental-space

About

Container based SSH/SFTP rental space

Requirement

  • Python: 3
    • package: pyyaml
  • Docker: 17.06 or later
  • Docker-Compose: file format v2.4 supported

Usage

  1. Edit container's credential on container-credentials.csv

Example) $ vim container-credentials.csv

SSH_USER,SSH_PASSWORD,SSH_LISTEN_PORT,SERVER_NAME,CONTAINER_NAME,NETWORK_NAME,HOST_VOLUME_PATH
sshuser1,sshpass1,32201,ssh-server1,circle1,ssh-network1,/var/www/circle1
sshuser2,sshpass2,32202,ssh-server2,circle2,ssh-network2,/var/www/circle2

Note) You should not use space on csv-file.

  1. Build docker-compose.yml by use of main.py
$ python3 main.py

On error, You would like to install pyyaml packaege.

ModuleNotFoundError: No module named 'yaml'
  1. Upstart containers by generated docker-compose
$ docker-compose up -d

Architecture

Some containers is isolated by using docker's custom network. This system is used docker's function of CPU/RAM/STORAGE limitation.