Independent testing Updated April 2026 387 self-hosting guides 5 VPS providers tested

guide

How to Self-Host Memos on a VPS (Complete Guide)

A complete step-by-step guide to self-hosting Memos on a VPS in 2026, covering installation, configuration, securing Memos, and the specs you need.

How to Self-Host Memos on a VPS (Complete Guide)

Self-hosting your applications, like Memos, can be an empowering approach for developers and homelab enthusiasts. In this guide, we will focus on how to install Memos on a VPS using Docker. We will cover everything from selecting a quality VPS provider to running the necessary commands. Letโ€™s dive in!

Step 1: Choose Your VPS Provider

Before setting up Memos, youโ€™ll need a reliable VPS. Below is a comparison of some top VPS providers that are great for self-hosting:

ProviderMonthly PriceKey Features
Contabo VPS5.99 EURHigh storage, affordable options
Hetzner Cloud4.15 EURExcellent performance, flexible options
DigitalOcean6 USDUser-friendly interface, global presence
Vultr6 USDVariety of OS images and configurations
Linode (Akamai Cloud)5 USDAdvanced networking and support options

For detailed comparisons, check out our full VPS comparison.

Why Choose a VPS?

A VPS provides you with full control over your server environment and is typically more cost-effective than dedicated servers. You can easily scale resources as needed, making it ideal for applications like Memos.

Step 2: Set Up Your VPS

Once youโ€™ve selected a VPS provider, follow these general steps to set it up:

  1. Sign Up for a Plan: Choose a suitable plan based on your expected usage. Any of the providers mentioned above should suffice for Memos.

  2. Connect to Your VPS: Use SSH to connect to your VPS. The command will look like this:

    ssh root@your_vps_ip_address
  3. Install Docker: Youโ€™ll need Docker installed on your VPS to run Memos. Hereโ€™s how you install it:

    # Update your package database
    apt update
    
    # Install required packages
    apt install apt-transport-https ca-certificates curl software-properties-common
    
    # Add Dockerโ€™s official GPG key
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
    
    # Add Docker repository
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    
    # Install Docker
    apt update
    apt install docker-ce
  4. Verify Docker Installation:

    docker --version

Step 3: Install Memos

With Docker set up, itโ€™s time to install Memos:

  1. Create a Docker Network:

    docker network create memos-network
  2. Create a Memos Docker Container: Using the following command, run the Memos container:

    docker run -d \
      --name memos \
      --network memos-network \
      -e DB_TYPE=sqlite \
      -e MEMOS_SECRET=your_secret_key \
      -v memos_data:/data \
      -p 8080:8080 \
      memos/memos:latest
  3. Access Memos in Your Browser: Navigate to http://your_vps_ip_address:8080/ to start using Memos.

Step 4: Configuring Memos

After successful installation, configure Memos as per your needs:

Optional: Set Up a Reverse Proxy

For enhanced security and ease of use, consider setting up a reverse proxy with Nginx.

  1. Install Nginx:

    apt install nginx
  2. Create a Configuration File: Edit /etc/nginx/sites-available/memos and add the following:

    server {
        listen 80;
        server_name your_domain.com;
    
        location / {
            proxy_pass http://localhost:8080;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }
    }
  3. Enable the Configuration:

    ln -s /etc/nginx/sites-available/memos /etc/nginx/sites-enabled/
    systemctl restart nginx

FAQs

What is Memos?

Memos is an open-source memo management tool designed to help users organize thoughts, notes, and ideas. It offers a clean interface for users to create, manage, and share memos, making it ideal for personal use or team collaboration. By self-hosting Memos, you maintain control over your data while enjoying the flexibility of a tailored environment.

How can I secure my self-hosted Memos instance?

Securing your self-hosted Memos involves several steps:

  1. Use HTTPS: Always enable HTTPS to secure data in transit. Using a reverse proxy like Nginx allows you to handle SSL certificates.
  2. Regular Updates: Keep Docker, Memos, and your VPS OS up-to-date to protect against vulnerabilities.
  3. Access Controls: Implement user authentication and limit access using firewall rules or VPNs.

Can I run Memos on a budget VPS?

Yes! Memos can run efficiently on budget-friendly VPS options. Providers like Hetzner Cloud (4.15 EUR/mo) and Linode (5 USD/mo) offer sufficient resources for Memos, making it an accessible choice for developers looking to self-host without breaking the bank. Just ensure you have enough RAM (at least 1GB) for smooth operation.

By following this guide, you can successfully self-host Memos on a VPS, taking advantage of the convenience and flexibility that self-hosting provides. Enjoy organizing your notes in your own secure environment!