mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
- Add comprehensive wiki documentation under .github/wiki/ (19 articles) - Add READMEs to directories that lacked them - Fix merge conflict markers in existing READMEs - Update root readme.md with improved structure Co-authored-by: Jarvis <jarvis@wickedyoda.local>
3.0 KiB
3.0 KiB
Docker Setup
Docker configuration, installation scripts, and backup utilities.
Docker Installation Scripts
docker/install_docker_debian.sh
Debian-based Docker Engine installation.
Usage:
sudo ./install_docker_debian.sh
Includes:
- Docker Engine (docker-ce)
- Docker Compose plugin (v2)
- Optional: Adds current user to docker group
Post-install:
# Log out and back in, or run:
newgrp docker
docker/install_docker_ubuntu.sh
Ubuntu-specific Docker installation.
Usage:
sudo ./install_docker_ubuntu.sh
Same functionality as debian script with Ubuntu package names.
Docker Compose Examples
docker/jellyfin-docker-compose.yml
Media server configuration.
Key settings:
- Ports: 8096 (web), 8920 (HTTPS), 7359/1900 (UPnP)
- Volumes: config, cache, media
- Published URL:
http://docker2
Usage:
docker compose up -d
Edit before running:
- Update
volumespaths to match your system - Adjust
JELLYFIN_PublishedServerUrlfor your domain
docker/portainer/portainers-installscript.sh
Portainer container installation.
Usage:
sudo ./portainers-installscript.sh
Creates:
- Portainer data volume
- Portainer CE container on port 8099 (UI), 9443 (HTTPS)
docker/portainer/update-portainer.sh
Update Portainer to latest version.
Usage:
sudo ./update-portainer.sh
What it does:
- Pulls
portainer/portainer-ce:latest - Restarts the container
Docker Backup
Location: Docker_backup/
Scripts:
| Script | Purpose |
|---|---|
docker-backup.sh |
Main backup script |
setup_docker-backup.sh |
Install backup + cron |
correct_docker-backup.sh |
Fix older installs |
update_docker-backup.sh |
Upgrade existing |
Backup Contents:
/mnt/naspublic/docker-backup/{hostname}/{month}/{date}/
├── /root/docker
├── /opt/docker
├── /var/lib/docker/volumes
└── /home/traver/docker
Schedule: Every 3 hours
Retention: 14 days
Usage:
# First time setup
sudo ./setup_docker-backup.sh
# Update existing install
sudo ./update_docker-backup.sh
Docker Remote API
docker_stuff/setup-docker-remote-api.sh
Enable Docker TCP API for remote monitoring (e.g., Uptime Kuma).
Usage:
# Basic (insecure - listens on all interfaces)
sudo bash setup-docker-remote-api.sh
# With IP restriction (secure)
sudo bash setup-docker-remote-api.sh --allow-ip 10.0.84.50
Warning: This exposes the Docker API over unencrypted TCP. Only use on trusted networks with IP restrictions.
Default port: 2375
Docker Cleanup
docker_stuff/docker_cleanup_updates.sh
Combined update and cleanup script.
What it does:
- Pulls setup scripts from GitHub
- Runs system updates
- Prunes unused Docker images
- Prunes unused Docker networks
- Removes stopped containers
- Clears build cache
Usage:
sudo ./docker_cleanup_updates.sh