This program provides container-based SSH/SFTP rental space with a multi-tenant system.
- Python: 3
- package:
pyyaml
- package:
- Docker: 17.06 or later
- Docker-Compose: file format
v2.4
supported
- 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.
- Build
docker-compose.yml
by use ofmain.py
$ python3 main.py
On error, You would like to install pyyaml
packaege.
ModuleNotFoundError: No module named 'yaml'
- Upstart containers by generated docker-compose
$ docker-compose up -d
Some containers are isolated by using docker's custom network. This system limits CPU/RAM/STORAGE capacity using Docker feature.