Automatisiertes Setup für Raspberry Pi – Infrastructure as Code.
Getestet auf Raspberry Pi 3B mit Raspberry Pi OS Lite.
curl -s https://codeberg.org/hotfix/pi-infra/raw/branch/main/bootstrap.sh | sudo bashDas Script fragt welches Profil du willst und richtet alles automatisch ein – Docker, Container, Scripts, Cron-Jobs und Telegram.
| Profil | Inhalt |
|---|---|
pi-dns |
AdGuard Home, Dockge, pi-admin Scripts |
pi-media |
Jellyfin, Dockge, pi-admin Scripts |
pi-home |
Home Assistant, Dockge, pi-admin Scripts |
pi-infra/
├── bootstrap.sh # Einstiegspunkt
├── .env.example # Vorlage (sicher für Git)
├── profiles/
│ ├── pi-dns/
│ │ ├── profile.sh
│ │ └── docker/
│ │ └── adguard/
│ │ └── compose.yml
│ └── pi-media/
│ ├── profile.sh
│ └── docker/
│ └── jellyfin/
│ └── compose.yml
├── shared/
│ ├── scripts/ # monitor, cleanup, update, ...
│ └── docker/
│ └── dockge/
│ └── compose.yml
└── docs/ # Ausführliche Dokumentation
- Telegram Bot einrichten
- Profile & neues Profil anlegen
- Docker & Compose Files verwalten
- Secrets & .env
- Backup & NAS
- Cron-Jobs
- Windows Remote-Deploy
- Troubleshooting
cd ~/pi-infra && git pull
sudo bash bootstrap.sh pi-dnsIdempotent – bereits laufende Container werden nicht neu gestartet.