🖥️ Hosting on a VPS (DigitalOcean, Vultr, Linode)

Complete guide to running Eaglercraft on your own cloud server.

Why Choose a VPS?

Option Cost Uptime Control
Codespaces Free (120 hrs/mo) Limited Limited
Sealos Free tier or $5+ Good Medium
VPS $5-20/month Excellent Complete

Best VPS Providers for Eaglercraft

DigitalOcean ($5/month)

Vultr ($2.50-5/month)

Linode ($5/month)

Recommended Specs for Eaglercraft

Player Count vCPU RAM Cost/Month
1-10 players 1 vCPU 512MB-1GB $5
10-30 players 2 vCPU 2GB $10
30-100 players 4 vCPU 4-8GB $20-40

Setup Process (DigitalOcean Example)

Step 1: Create Droplet

  • Go to digitalocean.com
  • Click "Create → Droplets"
  • Choose: Ubuntu 22.04 LTS
  • Choose: $5/month plan
  • Choose: Closest region to you
  • Click "Create Droplet"
  • Wait 2 minutes for boot
  • Step 2: SSH into VPS

    $ ssh root@your.vps.ip.address
    (Accept the key fingerprint: yes)
    (Paste password from email)

    Step 3: Install Docker

    $ apt update && apt upgrade -y
    $ curl -fsSL https://get.docker.com -o get-docker.sh
    $ sh get-docker.sh
    $ rm get-docker.sh

    Step 4: Install Docker Compose

    $ curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    $ chmod +x /usr/local/bin/docker-compose
    $ docker-compose --version

    Step 5: Deploy Eaglercraft (Same as Codespaces!)

    $ mkdir eaglercraft && cd eaglercraft
    $ nano docker-compose.yml
    (Paste the Docker compose config)
    $ docker-compose up -d

    Step 6: Set Up Reverse Proxy (Nginx for HTTPS)

    $ apt install nginx -y
    $ apt install certbot python3-certbot-nginx -y
    
    (Create nginx config pointing to localhost:5201)
    (Run certbot for free SSL certificate)

    Domain Configuration

    Option 1: Use VPS IP Directly

    Server URL: wss://1.2.3.4:5201

    ⚠️ Warning: Self-signed certificate warnings

    Option 2: Point Domain (Best)

    Using Namecheap, GoDaddy, etc.:

  • Get domain name ($10-15/year)
  • Point A record to VPS IP
  • Set up Nginx with SSL (Let's Encrypt)
  • Server URL: wss://eaglercraft.yourdomain.com
  • Security Best Practices

    Essential Security Steps

    Firewall Config

    $ ufw allow 22/tcp   (SSH)
    $ ufw allow 80/tcp   (HTTP, for certbot)
    $ ufw allow 443/tcp  (HTTPS/WSS)
    $ ufw enable

    Monitoring & Maintenance

    Check Server Resources

    $ docker ps              (running containers)
    $ docker logs -f eaglercraft  (see logs)
    $ df -h                (disk usage)
    $ free -h              (RAM usage)
    $ top                  (CPU usage)

    Restart Server Safely

    $ docker-compose restart
    (Wait 60 seconds for graceful shutdown)
    (Server auto-restarts)

    Troubleshooting VPS Issues

    ❌ Server Won't Start

    ❌ Connection Refused

    ❌ High CPU Usage

    💡 Codespaces vs VPS

    Compare hosting options.

    Back Home

    📚 Docker Setup

    Docker-specific guide.

    Docker Guide

    ❓ Have Questions?

    Check FAQ or support.

    FAQ