Go to file
XPS\Micro 288d2f3db5 docs: Synology Git Berechtigungsbits Problem dokumentieren
- Erkläre das 'local changes' Fehler-Problem auf Synology
- Ursache: Automatische Berechtigungsänderungen (executable bit)
- Lösung: git checkout <datei> vor git pull
- Zeige Beispiel (old mode 100644 vs new mode 100755)
2026-02-03 14:14:47 +01:00
docs docs: Synology Git Berechtigungsbits Problem dokumentieren 2026-02-03 14:14:47 +01:00
frontend frontend mod 2026-02-02 18:02:13 +01:00
user-template-01 -01/-02 added in html 2026-02-02 17:22:02 +01:00
user-template-02 -01/-02 added in html 2026-02-02 17:22:02 +01:00
user-template-next fix: add fallback to npm install for user-template-next 2026-01-31 18:34:06 +01:00
.dockerignore Initial project structure with documentation 2026-01-30 18:00:41 +01:00
.env.example feat: implement .env-based template building for install.sh 2026-02-02 16:40:45 +01:00
.gitignore - Changed view-logs to read docker container logs (docker logs spawner) 2026-02-01 15:36:52 +01:00
admin_api.py docs: add Swagger/OpenAPI documentation for DEBUG-API 2026-02-02 17:25:24 +01:00
api.py fix: Container-Spawn Fehler beheben - Pre-Check für existierende Container, Naming-Konflikt auflösen 2026-02-03 14:09:36 +01:00
app.py fix: use spawn_multi_container instead of spawn_container for multi-container support 2026-02-02 22:47:48 +01:00
auth.py Fix auth.py: redirect to frontend instead of rendering templates 2026-01-30 22:08:36 +01:00
config.py add debug admin API for logs and database management 2026-02-01 13:41:28 +01:00
container_manager.py fix: Container-Spawn Fehler beheben - Pre-Check für existierende Container, Naming-Konflikt auflösen 2026-02-03 14:09:36 +01:00
decorators.py Add admin features and email verification 2026-01-31 07:01:51 +01:00
docker-compose.yml add debug admin API for logs and database management 2026-02-01 13:41:28 +01:00
Dockerfile Initial project structure with documentation 2026-01-30 18:00:41 +01:00
email_service.py feat: Implement passwordless authentication with Magic Links 2026-01-31 16:19:22 +01:00
IMPLEMENTATION_SUMMARY.md feat: implement multi-container deletion, DSGVO compliance, and toast notifications 2026-02-02 17:19:48 +01:00
IMPLEMENTATION-GUIDE.md feat: Implement passwordless authentication with Magic Links 2026-01-31 16:19:22 +01:00
install.sh reads eleminated 2026-02-03 07:11:59 +01:00
models.py feat: implement multi-container deletion, DSGVO compliance, and toast notifications 2026-02-02 17:19:48 +01:00
README.md Initial project structure with documentation 2026-01-30 18:00:41 +01:00
requirements.txt docs: add Swagger/OpenAPI documentation for DEBUG-API 2026-02-02 17:25:24 +01:00
templates.json feat: implement dynamic template system with auto-detection 2026-02-01 09:04:59 +01:00
TEST_VERIFICATION.md feat: implement multi-container MVP with dev and prod templates 2026-01-31 20:33:07 +01:00

Container Spawner

Ein Flask-basierter Service zur automatischen Bereitstellung von isolierten Docker-Containern pro Benutzer mit Traefik-Integration. Benutzer registrieren sich, erhalten einen eigenen Container und eine personalisierte Subdomain.

Features

  • User-Management: Registrierung und Login mit sicherer Passwort-Speicherung
  • Automatisches Container-Spawning: Jeder User erhaelt einen eigenen Docker-Container
  • Dynamisches Routing: Traefik routet automatisch zu den User-Containern via Subdomain
  • Resource-Management: CPU- und RAM-Limits pro Container
  • Lifecycle-Management: Starten, Stoppen und Neustarten von User-Containern
  • Template-basiert: Neue User-Container aus vorgefertigten Images

Schnellstart

# Installation mit einem Befehl
curl -sSL https://gitea.iotxs.de/RainerWieland/spawner/raw/branch/main/install.sh | bash

Nach der Installation .env anpassen und erneut ausfuehren:

cp .env.example .env
nano .env  # Werte anpassen
bash install.sh

Voraussetzungen

  • Docker 20.10+
  • Docker Compose 2.0+
  • Traefik 2.x oder 3.x (laufend)
  • Bestehendes Docker-Netzwerk fuer Traefik

Dokumentation

Dokument Beschreibung
Installation Installationsanleitung und Updates
Architektur Technische Architektur und Komponenten
Sicherheit Sicherheitsrisiken und Massnahmen
Versionen Changelog und Versionierung
Bekannte Bugs Bekannte Probleme und Workarounds
Best Practices Dos and Don'ts

Projektstruktur

spawner/
├── app.py                 # Flask-Hauptanwendung
├── auth.py                # Authentifizierungs-Blueprint
├── container_manager.py   # Docker-Container-Management
├── models.py              # SQLAlchemy User-Modell
├── config.py              # Konfigurationsklassen
├── templates/             # Jinja2-Templates (Legacy)
├── frontend/              # Next.js Frontend
├── user-template/         # Docker-Template fuer User-Container
└── docs/                  # Dokumentation

Konfiguration

Alle Einstellungen erfolgen ueber Umgebungsvariablen in .env:

Variable Beschreibung
SECRET_KEY Flask Session Secret (generieren!)
BASE_DOMAIN Haupt-Domain (z.B. example.com)
SPAWNER_SUBDOMAIN Subdomain fuer Spawner-UI
TRAEFIK_NETWORK Docker-Netzwerk fuer Traefik
USER_TEMPLATE_IMAGE Docker-Image fuer User-Container

Siehe .env.example fuer alle Optionen.

Lizenz

MIT License - siehe Dokumentation fuer Details.


Version: 0.1.0 Repository: https://gitea.iotxs.de/RainerWieland/spawner