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

guide

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

Learn how to self-host Gotify on a VPS with a step-by-step 2026 guide covering install, configuration, and securing Gotify for reliable daily use.

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

Gotify is an open-source server for sending and receiving notifications. Self-hosting Gotify on a VPS (Virtual Private Server) allows you to control your notification system without relying on third-party services. This guide will take you through the prerequisites, installation, and configuration of Gotify on a VPS such as Contabo, Hetzner, DigitalOcean, Vultr, or Linode.

Prerequisites

Before starting, ensure you have:

Step 1: Setting Up Your VPS

  1. Access your VPS: Use SSH to log into your VPS.

    ssh root@your_vps_ip
  2. Update your system:

    apt update && apt upgrade -y
  3. Install Docker: Run the following commands to install Docker.

    apt install -y apt-transport-https ca-certificates curl software-properties-common
    curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
    apt update
    apt install -y docker-ce
  4. Add your user to the Docker group:

    usermod -aG docker $USER

    After this step, log out and back in to apply group changes.

  5. Verify Docker installation:

    docker --version

Step 2: Install Gotify

  1. Create a new directory for Gotify:

    mkdir ~/gotify
    cd ~/gotify
  2. Pull the Gotify Docker image:

    docker pull gotify/server
  3. Run the Gotify container:

    docker run -d -p 80:8080 --name gotify \
    -e GOTIFY_DATABASE_URL=sqlite3://data/gotify.db \
    -v ~/gotify/data:/app/data gotify/server
  4. Access the Gotify web interface: Open your web browser and navigate to your VPS IP or domain name (e.g., http://your_vps_ip).

  5. Initial setup: Create an admin account in the Gotify interface.

Step 3: Configuring Gotify

Frequently Asked Questions

How can I ensure that Gotify is secure on my VPS?

To enhance the security of your Gotify instance, it is crucial to implement HTTPS. You can achieve this by configuring a reverse proxy (e.g., Nginx or Traefik) to handle SSL certificates. A good practice is to use tools like Letโ€™s Encrypt, which provides free SSL certificates. Additionally, limit access to your VPS via firewall rules and always keep your software updated.

Can I run Gotify alongside other applications on the same VPS?

Yes, Gotify can run alongside other applications on the same VPS, provided there are sufficient resources (CPU, RAM, and Disk Space). Docker containers are isolated, so they will run independently without interfering with each other. Ensure you manage ports correctly and adjust your Docker commands if running multiple services that use similar ports.

What are the benefits of self-hosting Gotify versus using a third-party service?

Self-hosting Gotify gives you full control over your data and notification system. You wonโ€™t be subjected to the limitations or privacy concerns that often come with third-party services. Additionally, you can customize the setup to meet specific requirements, adjust notifications, and manage users according to your preferences without depending on the availability or policies of third-party providers.


Self-hosting Gotify on a VPS is a straightforward process that offers a powerful notification system suitable for developers and homelab enthusiasts. By following this guide, you can set up your own notification server and take control of your messaging needs. For a full VPS comparison, check out our best VPS comparison.