Bester VPS für Mastodon 2026: Eigene Fediverse-Instanz hosten
Finden Sie den besten VPS für Mastodon-Hosting. Vergleichen Sie Anforderungen, richten Sie Ihre eigene Fediverse-Instanz ein und werden Sie Teil des dezentralen sozialen Webs.
Bester VPS für Mastodon in 2026
Mastodon ist die dezentrale Twitter-Alternative. Betreiben Sie Ihre eigene Instanz und behalten Sie die Kontrolle über Ihre sozialen Medien — keine Algorithmen, keine Werbung, vollständige Datenhoheit.
Was ist Mastodon?
Mastodon ist ein föderiertes soziales Netzwerk:
- Ihr Server, Ihre Regeln — Legen Sie Ihre eigenen Moderationsrichtlinien fest
- Föderiert — Verbinden Sie sich mit allen anderen Mastodon-/Fediverse-Servern
- Kein Algorithmus — Chronologische Timeline
- Keine Werbung — Niemals
- ActivityPub — Kompatibel mit Pleroma, Pixelfed, PeerTube. Falls Sie Chat statt Microblogging bevorzugen, lesen Sie unseren Matrix-Leitfaden
Stellen Sie es sich so vor: Sie betreiben Ihr eigenes Twitter, das mit dem Twitter aller anderen kommunizieren kann.
VPS-Anforderungen
Mastodon basiert auf Ruby on Rails und ist ressourcenhungrig:
Einzelbenutzer-Instanz
- 2 vCPU
- 4GB RAM
- 40GB Speicherplatz
- Gute Bandbreite
Kleine Community (10-50 Benutzer)
- 2-4 vCPU
- 8GB RAM
- 80GB Speicherplatz
Mittlere Instanz (50-500 Benutzer)
- 4+ vCPU
- 16GB RAM
- 200GB+ Speicherplatz
- Dedizierter Server in Betracht ziehen
Warum so ressourcenhungrig?
Mastodon betreibt:
- Ruby on Rails Webserver
- Sidekiq Hintergrund-Worker
- PostgreSQL Datenbank
- Redis Cache
- Elasticsearch (optional)
- Medienverarbeitung
Es ist eine vollständige Stack-Anwendung, kein leichtgewichtiger Dienst. Achten Sie darauf, einen VPS mit ausreichend Ressourcen zu wählen — unser VPS-Kaufleitfaden kann Ihnen dabei helfen.
Bester VPS für Mastodon
1. Hetzner CX31 (Bestes Preis-Leistungs-Verhältnis)
10,49 €/Monat | 2 vCPU, 8GB RAM, 80GB NVMe
8GB RAM reicht für Einzelbenutzer bis kleine Community. Hetzners 20TB Bandbreite ist entscheidend für den Föderations-Traffic.
Ideal für: Persönliche oder kleine Gruppeninstanzen
2. Hostinger KVM4 (Bestes Budget für große Instanzen)
$12,99/Monat | 4 vCPU, 8GB RAM, 200GB NVMe
4 Kerne helfen bei der Verarbeitung von Hintergrund-Jobs. 200GB Speicherplatz ist großzügig für Medien.
3. Hetzner CX41 (Am besten für Wachstum)
17,49 €/Monat | 4 vCPU, 16GB RAM, 160GB NVMe
16GB RAM bieten Spielraum nach oben. Upgrade-Pfad zum CX51, falls Ihre Instanz wächst.
4. Contabo VPS M (Meister Speicherplatz)
10,49 €/Monat | 6 vCPU, 16GB RAM, 400GB
Contabos Spezifikationen sind unübertroffen, wenn Sie viele Medien-Uploads erwarten.
Object Storage: Unverzichtbar für Mastodon
Speichern Sie Medien nicht lokal. Verwenden Sie S3-kompatiblen Object Storage:
| Anbieter | Preis | Hinweise |
|---|---|---|
| Cloudflare R2 | 10GB kostenlos | Keine Egress-Gebühren! |
| Wasabi | $6,99/TB | Keine Egress-Gebühren |
| Backblaze B2 | $6/TB | + Bandbreitenkosten |
| Hetzner Storage Box | 3,81 €/TB | Gut in Kombination mit Hetzner VPS |
Cloudflare R2 ist die beste Wahl — großzügiges kostenloses Kontingent, keine Bandbreitenkosten.
Vollständige Einrichtungsanleitung
Schritt 1: VPS erstellen
Mit Hetzner CX31:
- Bei Hetzner Cloud registrieren
- Ubuntu 22.04 → CX31 → SSH-Schlüssel hinzufügen
- IP-Adresse notieren
Schritt 2: DNS einrichten
A mastodon.yourdomain.com → your-vps-ip
AAAA mastodon.yourdomain.com → your-ipv6 (optional)
Schritt 3: Ersteinrichtung des Servers
ssh root@your-vps-ip
# System aktualisieren und Abhängigkeiten installieren
apt update && apt upgrade -y
apt install -y curl wget gnupg apt-transport-https lsb-release ca-certificates
# Mastodon-Benutzer erstellen
adduser --disabled-login mastodon
# Node.js installieren
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt install -y nodejs
# Yarn installieren
corepack enable
yarn set version classic
# Ruby installieren (rbenv)
apt install -y git build-essential libssl-dev libreadline-dev \
zlib1g-dev libpq-dev libidn11-dev libicu-dev libjemalloc-dev \
imagemagick ffmpeg libvips-dev libvips42
su - mastodon
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 3.2.3
rbenv global 3.2.3
exit
Schritt 4: PostgreSQL & Redis installieren
# PostgreSQL
apt install -y postgresql postgresql-contrib
sudo -u postgres psql
CREATE USER mastodon CREATEDB;
\q
# Redis
apt install -y redis-server
systemctl enable redis-server
Schritt 5: Mastodon installieren
su - mastodon
git clone https://github.com/mastodon/mastodon.git live
cd live
git checkout $(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1)
bundle config deployment 'true'
bundle config without 'development test'
bundle install -j$(nproc)
yarn install --frozen-lockfile
# Einrichtungsassistent
RAILS_ENV=production bundle exec rake mastodon:setup
Folgen Sie dem interaktiven Setup:
- Domain: mastodon.yourdomain.com
- Datenbank: lokal (bereits erstellt)
- Redis: lokal
- Object Storage: S3/R2 konfigurieren
- SMTP: Ihr E-Mail-Anbieter
- Admin-E-Mail: you@yourdomain.com
Schritt 6: Nginx konfigurieren
exit # zurück zu root
apt install -y nginx certbot python3-certbot-nginx
# SSL-Zertifikat erstellen
certbot --nginx -d mastodon.yourdomain.com
# Mastodon-Nginx-Konfiguration kopieren
cp /home/mastodon/live/dist/nginx.conf /etc/nginx/sites-available/mastodon
ln -s /etc/nginx/sites-available/mastodon /etc/nginx/sites-enabled/
# Bearbeiten und Domain aktualisieren
nano /etc/nginx/sites-available/mastodon
# server_name auf Ihre Domain ändern
nginx -t
systemctl restart nginx
Schritt 7: Systemd-Dienste einrichten
cp /home/mastodon/live/dist/mastodon-*.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable mastodon-web mastodon-sidekiq mastodon-streaming
systemctl start mastodon-web mastodon-sidekiq mastodon-streaming
Schritt 8: Admin-Konto erstellen
su - mastodon
cd live
RAILS_ENV=production bin/tootctl accounts create admin \
--email you@yourdomain.com \
--confirmed \
--role Owner
Notieren Sie sich das angezeigte Passwort!
Object Storage einrichten (Cloudflare R2)
R2-Bucket erstellen
- Cloudflare Dashboard → R2
- Bucket erstellen:
mastodon-media - API-Token mit Lese-/Schreibzugriff erstellen
Mastodon konfigurieren
Bearbeiten Sie /home/mastodon/live/.env.production:
S3_ENABLED=true
S3_BUCKET=mastodon-media
S3_REGION=auto
S3_PROTOCOL=https
S3_HOSTNAME=YOUR_ACCOUNT_ID.r2.cloudflarestorage.com
S3_ENDPOINT=https://YOUR_ACCOUNT_ID.r2.cloudflarestorage.com
AWS_ACCESS_KEY_ID=your-r2-access-key
AWS_SECRET_ACCESS_KEY=your-r2-secret-key
S3_ALIAS_HOST=media.yourdomain.com
CDN konfigurieren
In Cloudflare:
- CNAME hinzufügen:
media.yourdomain.com→YOUR_ACCOUNT_ID.r2.cloudflarestorage.com - Cloudflare-Proxy aktivieren (orangefarbene Wolke)
Jetzt werden Medien über das Cloudflare CDN ausgeliefert — schnell und ohne Bandbreitenkosten.
E-Mail-Konfiguration
Mastodon benötigt E-Mail für:
- Kontobestätigungen
- Passwortzurücksetzungen
- Benachrichtigungen
Mit Resend (empfohlen)
SMTP_SERVER=smtp.resend.com
SMTP_PORT=587
SMTP_LOGIN=resend
SMTP_PASSWORD=re_xxxx
SMTP_FROM_ADDRESS=notifications@yourdomain.com
Mit Mailgun
SMTP_SERVER=smtp.mailgun.org
SMTP_PORT=587
SMTP_LOGIN=postmaster@yourdomain.com
SMTP_PASSWORD=your-password
SMTP_FROM_ADDRESS=notifications@yourdomain.com
Performance-Optimierung
PostgreSQL
Bearbeiten Sie /etc/postgresql/15/main/postgresql.conf:
shared_buffers = 2GB
effective_cache_size = 6GB
work_mem = 16MB
maintenance_work_mem = 512MB
Redis
Bearbeiten Sie /etc/redis/redis.conf:
maxmemory 1gb
maxmemory-policy allkeys-lru
Sidekiq Worker
Bearbeiten Sie /etc/systemd/system/mastodon-sidekiq.service:
[Service]
Environment="MALLOC_ARENA_MAX=2"
Environment="DB_POOL=25"
ExecStart=/home/mastodon/.rbenv/shims/bundle exec sidekiq -c 25
Mehr Worker = schnellere Job-Verarbeitung, aber mehr RAM-Verbrauch.
Elasticsearch aktivieren (optional)
Für Volltextsuche:
# Elasticsearch installieren
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list
apt update && apt install elasticsearch
systemctl enable elasticsearch
systemctl start elasticsearch
In .env.production konfigurieren:
ES_ENABLED=true
ES_HOST=localhost
ES_PORT=9200
Suchindex neu aufbauen:
RAILS_ENV=production bin/tootctl search deploy
Wartungsaufgaben
Mastodon aktualisieren
su - mastodon
cd live
git fetch --all
git checkout $(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1)
bundle install
yarn install --frozen-lockfile
RAILS_ENV=production bundle exec rails db:migrate
RAILS_ENV=production bundle exec rails assets:precompile
exit
systemctl restart mastodon-web mastodon-sidekiq mastodon-streaming
Alte Medien aufräumen
su - mastodon
cd live
# Entfernte Medien älter als 7 Tage löschen
RAILS_ENV=production bin/tootctl media remove --days=7
# Verwaiste Dateien entfernen
RAILS_ENV=production bin/tootctl media remove-orphans
Als Cronjob einplanen:
0 4 * * * /home/mastodon/live/bin/tootctl media remove --days=7
Backup
# Datenbank
pg_dump -Fc mastodon_production > backup.dump
# Umgebungskonfiguration
cp /home/mastodon/live/.env.production backup/
# Geheimnisse
# Sichern Sie Ihre .env.production an einem sicheren Ort!
Ressourcenverbrauch
Typische Einzelbenutzer-Instanz:
| Komponente | RAM |
|---|---|
| Puma (Web) | 500MB-1GB |
| Sidekiq | 500MB-2GB |
| Streaming | 100MB |
| PostgreSQL | 1GB |
| Redis | 200MB |
| Gesamt | 3-5GB |
8GB bieten komfortablen Spielraum.
Tipps zur Föderation
Entdeckt werden
- Relays nutzen — Verbinden Sie sich mit Mastodon-Relays für mehr Inhalte
- Interessanten Personen folgen — Deren Beiträge erscheinen auf Ihrer Instanz
- Hashtags verwenden — Über die gesamte Föderation auffindbar
Schlechte Akteure blockieren
Im Admin-Panel:
- Domain-Blockierungen für Spam-Instanzen
- Instanzen stummschalten, die Sie nicht verstärken möchten
- Wirklich problematische Domains sperren
FAQ
Wie viel kostet der Betrieb von Mastodon?
| Benutzer | VPS | Speicher | Gesamt |
|---|---|---|---|
| 1-10 | 10 €/Monat | ~kostenlos | ~10 €/Monat |
| 10-50 | 17 €/Monat | 5 €/Monat | ~22 €/Monat |
| 50-500 | 35 €/Monat | 20 €/Monat | ~55 €/Monat |
Ist die Wartung von Mastodon aufwendig?
Mittelmäßig. Updates erscheinen häufig. Planen Sie 2-4 Stunden pro Monat für die Wartung ein. Erwägen Sie die Einrichtung von Monitoring mit Grafana, um Ihre Instanz im Blick zu behalten.
Kann ich von Twitter migrieren?
Ja! Nutzen Sie Tools wie Movetodon, um Ihre Twitter-Kontakte auf Mastodon zu finden.
Einzelbenutzer oder Community?
Starten Sie als Einzelbenutzer. Sie können Registrierungen später öffnen, wenn gewünscht.
Was ist mit Moderation?
Sie sind verantwortlich. Einzelbenutzer ist einfach. Eine Community erfordert klare Regeln und aktive Moderation.
Empfohlenes Setup
| Anwendungsfall | VPS | Monatliche Kosten |
|---|---|---|
| Persönlich | Hetzner CX31 | 10,49 € |
| Kleine Gruppe | Hostinger KVM4 | $12,99 |
| Community | Hetzner CX41 | 17,49 € |
Starten Sie mit Hetzner CX31 + Cloudflare R2 — etwa 10 €/Monat für vollständige Fediverse-Unabhängigkeit.
Ready to get started?
Get the best VPS hosting deal today. Hostinger offers 4GB RAM VPS starting at just $4.99/mo.
Get Hostinger VPS — $4.99/mo// up to 75% off + free domain included
// related topics
// related guides
AWS EC2 Alternatives 2026: Cheaper, Simpler VPS Hosting
Best AWS EC2 alternatives for cheaper VPS hosting. Compare Hetzner, Vultr, DigitalOcean, and more — save 70%+ with simpler billing.
reviewCheapest VPS Hosting 2026 — Best Budget Servers From $2.50
We compared 10 budget VPS providers on price, specs, and support. Here are the cheapest worth using — from $2.50/mo with real performance data.
reviewBest GPU VPS in 2026 — Cheapest NVIDIA Servers Compared
Rent GPU servers from $0.50/hr. We compare 8 GPU VPS providers for AI training, inference, and rendering — NVIDIA A100, H100, and RTX options.
reviewBest macOS VPS for iOS Development in 2026
Need a macOS VPS for iOS app development? We review the best providers offering macOS virtual servers for Xcode, Swift, and App Store publishing.
Andrius Putna
I am Andrius Putna. Geek. Since early 2000 in love tinkering with web technologies. Now AI. Bridging business and technology to drive meaningful impact. Combining expertise in customer experience, technology, and business strategy to deliver valuable insights. Father, open-source contributor, investor, 2xIronman, MBA graduate.
// last updated: February 8, 2026. Disclosure: This article may contain affiliate links.