Create an environment variables file .env like:
IP_ADDR=192.168.1.5
SSH_PORT=2222
HTTP_PORT=8080
docker-compose -f ./docker-compose.yml buildor
./build.shStep 2: Run
docker-compose -f ./docker-compose.yml up -dor
./run.shNow you can manage the service's users via SSH or Docker.
Create a new user:
user-add.sh USERNAMEDelete the user:
user-del.sh USERNAMECheck user's state:
user-check.sh USERNAMEList users:
user-list.shClone repository:
git clone ssh://USERNAME@STDS_ADDR:SSH_PORT/home/USERNAME/docs
cd docsFix and push changes:
git config user.name "USERNAME"
git config user.email "USEREMAIL"
git add .
git commit -m "COMMENT"
git push