Initial commit: Docker Stack homebridge

- HomeKit Bridge für Apple Home
- macvlan Netzwerk (10.11.1.243) für mDNS/Bonjour
- Security: User Namespaces, cap_drop: ALL, resource limits
- Backup-Strategie: GIT_PLUS_DATA

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-24 21:05:48 +00:00
commit 6c5e6e7202
5 changed files with 204 additions and 0 deletions

22
restore/fix-permissions.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# fix-permissions.sh - homebridge
set -e
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; NC='\033[0m'
echo -e "${YELLOW}🔧 Setze Permissions für homebridge...${NC}"
# Prüfe sudo
[[ $EUID -ne 0 ]] && { echo -e "${RED}❌ Fehler: Mit sudo ausführen${NC}"; exit 1; }
# Prüfe Verzeichnis
[[ ! -d "mounts" ]] && { echo -e "${RED}❌ Fehler: mounts/ nicht gefunden. Von /srv/docker/homebridge aus ausführen!${NC}"; exit 1; }
# User Namespace Mapping
# Container UID 0 (root) → Host UID 100000 (unprivileged)
echo " 📂 mounts/ → 100000:100000 (755)"
chown -R 100000:100000 ./mounts
chmod 755 ./mounts
echo -e "${GREEN}✅ Permissions gesetzt${NC}"
echo "Wichtig: Container UID 0 → Host UID 100000 (userns-remap)"