mirror of https://github.com/Aelita4/sshmon.git
				
				
				
			| 
				
					
						 | 
			||
|---|---|---|
| src | ||
| views | ||
| .dockerignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
| docker-compose.yml | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
		
			
				
				README.md
			
		
		
			
			
		
	
	sshmon
Utility to monitor uptime of servers/services
First configuration
- Create docker image
 
$ docker build -t sshmon .
- Setup containers
 
- 
$ docker-compose up -d- This will open ports 3306 for database, 8080 for main app and 8081 for phpMyAdmin
 
 
- Create database and tables
 
- Script does not create database and tables by default
- Create database 
sshmonwith 3 tables:ips Name Type Extra id int AUTO_INCREMENT PRIMARY KEY ip varchar(255) users Name Type Extra id int AUTO_INCREMENT PRIMARY KEY username varchar(255) password varchar(255) downtime Name Type Extra id int AUTO_INCREMENT PRIMARY KEY ip varchar(255) time datetime status varchar(255)  
 - Create database 
 
- Register new account in app
 - Login
 - Enjoy!