Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
A decentralized microblogging server built on ActivityPub. Each server runs its own community and federates with other Mastodon and Fediverse servers.
Runs on a VPS from $12/mo (Kamatera 4GB, 4 GB RAM) · prices checked Nov 2026
Fits home hardware (849 MB measured idle, RAM only): Raspberry Pi 4 (4 GB) (arm64 untested), Raspberry Pi 5 (8 GB) (arm64 untested), Repurposed laptop (8 GB), Intel N100 mini PC (16 GB), AMD Ryzen mini PC (32 GB).
Paid link — we earn a commission if you shop through it.
Run these commands on your server:
# Mastodon — the repo's docker-compose.yml (web + streaming + sidekiq + PostgreSQL + Redis), pinned to the release
mkdir mastodon && cd mastodon
wget https://raw.githubusercontent.com/mastodon/mastodon/v4.7.2/docker-compose.yml
mkdir -p public/system && sudo chown -R 991:991 public/system
# LOCAL_DOMAIN is permanent: it is the domain in every handle (@you@social.example.com)
cat > .env.production << EOF
LOCAL_DOMAIN=social.example.com
REDIS_HOST=redis
DB_HOST=db
DB_USER=postgres
DB_NAME=mastodon_production
SECRET_KEY_BASE=$(openssl rand -hex 64)
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=$(openssl rand -hex 32)
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=$(openssl rand -hex 32)
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=$(openssl rand -hex 32)
EOF
docker compose run --rm web bundle exec rails mastodon:webpush:generate_vapid_key >> .env.production
docker compose up -d db redis && sleep 15
docker compose run --rm web bundle exec rails db:setup
docker compose up -d
# web listens on 127.0.0.1:3000 and forces HTTPS: put nginx/Caddy with a TLS cert for LOCAL_DOMAIN in frontMastodon used 849 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.2 (first boot, measured Oct 2026). We list a minimum of 2048 MB.
The Mastodon install snippet is marked verified on Ubuntu 26.04 (Oct 2026).