No description
Find a file
2026-03-17 00:39:00 +03:00
scripts/docker-service refactor: new project structure 2026-03-17 00:39:00 +03:00
.gitattributes feat: scripts to install/uninstall docker-based services 2026-03-17 00:12:36 +03:00
.gitignore feat: scripts to install/uninstall docker-based services 2026-03-17 00:12:36 +03:00
LICENSE feat: scripts to install/uninstall docker-based services 2026-03-17 00:12:36 +03:00
README.md refactor: new project structure 2026-03-17 00:39:00 +03:00

Admin scripts

My collection of homelab management scripts.

Docker-based services

Scripts:

  • scripts/docker-service/install.sh
  • scripts/docker-service/uninstall.sh

Installation script will:

  • create user and group
  • add user to docker group
  • 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"