No description
- Shell 100%
| scripts/docker-service | ||
| .gitattributes | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
Admin scripts
My collection of homelab management scripts.
Docker-based services
Scripts:
scripts/docker-service/install.shscripts/docker-service/uninstall.sh
Installation script will:
- create user and group
- add user to
dockergroup - create user dirs (/srv/service-id, /opt/service-id) and chown -R them
- create typical /srv/service-id/docker-compose.yml (PROBABLY YOU NEED TO CHANGE IT)
- create /etc/nginx/conf.d/service-id.conf and ssl cert (SHOULD WORK AS IS)
- create systemd-unit /etc/systemd/system/id-сервиса.service
- (OPTIONALLY) create a ufw rule
- Print instructions (how to follow)
Uninstallation script will undo everyhing.
Usage examples
Installation
sudo scripts/docker-service/install.sh --id my-service --name "My very greate self-hosted service" --image my/service-image:latest --port 8080 --dns-name "my.service.io"
Uninstallation
sudo scripts/docker-service/uninstall.sh --id my-service --port 8080 --dns-name "my.service.io"