How nologin/docker-template works
This repository is a catalog of independently deployable Docker Swarm templates, not one application. The main workflow is to choose a template, set its deployment environment, deploy its stack, and then manage it with the supplied scripts; data volumes are stored on NFS, and Traefik can provide domain-based access. A distinct MySSH application records SSH password attempts and provides IP-map and timeline views. The README documents the general template workflow; the sampled MySSH sources show its web dispatch and data queries, but do not show how its containers are wired together.
Main entry points: docker-compose.yml Stack definition · bin Management scripts · index.php Web entry point · router.php Page router
Components 22
Template management
- Management scripts
alist/bin - Deploy environment
alist
Swarm deployment
- Stack definition
alist/docker-compose.yml - Swarm stack
- NFS storage
- Persistent volumes
alist/volume - Traefik proxy
traefik
Service templates
- Standalone templates
alist - Media templates
jellyfin - Collaboration templates
nextcloud - Infrastructure templates
nginx
MySSH application
- SSH honeypot
myssh/src/myssh-honeypot/auth-passwd.c - Password attempt log
- Web entry point
myssh/src/myssh-web/www/index.php - Database connection
myssh/src/myssh-web/www/common/config.php - Page router
myssh/src/myssh-web/www/common/router.php - MySQL database
- IP attack map
myssh/src/myssh-web/www/page/ip.php - Attack timeline
myssh/src/myssh-web/www/page/timeline.php - Map assets
myssh/src/myssh-web/www/res/china.js
Other components
- Operator
- SSH clients
Connections 21
- Operator → Management scripts: runs scripts
README.md - Operator → Deploy environment: configures
README.md - Management scripts → Stack definition: renders config
README.md - Deploy environment → Stack definition: customizes
README.md - Management scripts → Swarm stack: deploys and manages
README.md - Stack definition → Swarm stack: defines services
README.md - Swarm stack → NFS storage: stores volumes
README.md - Swarm stack → Persistent volumes: uses
README.md - Swarm stack → Traefik proxy: routes through
README.md - Standalone templates → Stack definition: provides templates
README.md - Operator → Web entry point: views reports
- Web entry point → Database connection: loads
myssh/src/myssh-web/www/index.php - Web entry point → Page router: loads
myssh/src/myssh-web/www/index.php - Page router → IP attack map: dispatches to
myssh/src/myssh-web/www/common/router.php - Page router → Attack timeline: dispatches to
myssh/src/myssh-web/www/common/router.php - Database connection → MySQL database: connects to
myssh/src/myssh-web/www/common/config.php - IP attack map → MySQL database: queries attacks
myssh/src/myssh-web/www/page/ip.php - Attack timeline → MySQL database: queries attacks
myssh/src/myssh-web/www/page/timeline.php - IP attack map → Map assets: loads map data
myssh/src/myssh-web/www/page/ip.php - SSH clients → SSH honeypot: attempts login
- SSH honeypot → Password attempt log: writes attempts