Skip to content

Set Up Heimdall on a Linux Server – All Your Web Apps on One Dashboard

Heimdall on a Linux server: as a One-Click App with login protection or with Docker Compose, with tiles, live stats and a search bar.

1 December 202612 min read1 Views0 helpful

Introduction

Heimdall is a lightweight dashboard for your self-hosted web apps. Instead of remembering a dozen addresses, you can create a tile for each app with an icon, color, and link, then open everything from one page. Heimdall recognizes many popular apps by name and automatically sets their icon and color. Some tiles even show live data from the app, such as queues or statistics. You can conveniently set everything up in your browser without needing a configuration file. With a search bar and custom background, Heimdall also works well as your browser’s homepage.

In this guide, we’ll show you two ways to get started: the easy way, using the One-Click App, which makes Heimdall available over HTTPS in about a minute, and a manual installation with Docker Compose. Afterward, you’ll log in and build your dashboard.

When Heimdall Makes Sense on a VPS

Heimdall is worth using as soon as you run more than two or three web apps. Heimdall is a good fit for a VPS if:

  • you use many self-hosted apps, such as Nextcloud, Vaultwarden, Jellyfin, or Uptime Kuma, and want a shared homepage for all of them.
  • you’d rather manage your dashboard in a browser than in YAML files. You can configure tiles, tags, the search bar, and the background using forms.
  • you want to see live data from individual apps on your dashboard without opening each app.
  • you want the same homepage everywhere, whether you’re on a PC, laptop, or smartphone.
  • you’re looking for a lightweight tool. On our test VPS, Heimdall used around 180 MB of RAM.

Heimdall is less suitable if you want to bring news, weather, and feeds together on one page. Glance is built for that. Heimdall also doesn’t replace monitoring with alerts for outages. For that, use a tool like Uptime Kuma.

Heimdall, Glance, or Homepage?

You’ll find three dashboards in the app catalog. They each take a different approach:

HeimdallGlanceHomepage
SetupIn the browser using formsglance.yml fileYAML files such as services.yaml
FocusTiles linking to your apps, some with live dataFeeds, weather, calendar, and service statusServices with status and API widgets, bookmarks, and server resources
LoginUsers with their own passwords; the One-Click App also protects Heimdall with a generated loginLogin in glance.ymlOptional login using environment variables
Data is stored inSQLite database in the /config folderConfiguration fileConfiguration files

If you want to avoid files and editors, Heimdall is the easiest choice. If you’d rather version your homepage as a file, choose Glance or Homepage.

The Easy Way: Heimdall as a One-Click App

The quickest way to get Heimdall is through your VPS’s One-Click Apps. With a domain, the app is immediately available over HTTPS and protected by a login from the start. You don’t need a reverse proxy, certificate, or firewall rules.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps for instructions.
  • Heimdall itself requires few resources. The container needs just a few hundred MB of RAM and around 1 GB of storage for the image and data.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search for Heimdall in the app catalog and click Install app.
  3. Use a custom subdomain or zap.cloud is already selected, with a random name. Leave it selected or enter your own name, such as start or dashboard.
  4. Under App configuration, the variables SERVICE_USER_HEIMDALL and SERVICE_PASSWORD_HEIMDALL appear under Automatically generated values. These are used to create your Heimdall login during installation. You don’t need to enter anything.
  5. Click Queue installation.

After about a minute, the app card will show Online.

First Visit and Login

The One-Click App adds a login screen before Heimdall. Without logging in, you can’t access the dashboard or any settings. Your username and password were generated during installation, and the app card indicates this with the Login notice:

  1. Click the gear icon on the app card and go to App environment.
  2. Under Automatically generated values, SERVICE_USER_HEIMDALL contains the username and SERVICE_PASSWORD_HEIMDALL contains the password. Click the eye icon to show a value or the icon next to it to copy it.
  3. Open Heimdall using the Access link. Your browser will ask for your username and password. Enter both values.

You’ll then land on an empty dashboard with the message “There are currently no pinned applications”. In the bottom-right corner, you’ll find a toolbar with icons for Users, Application list, Tags list, and Settings. The app manages the login credentials itself, so you can’t change them in the settings. It’s best to save them in your password manager, which will also let your browser remember the login.

Optional: Set a Password for the Heimdall User

During installation, Heimdall itself creates an admin user with no password. That’s not a problem behind the app’s login, since only someone with those credentials can access Heimdall in the first place. Setting a password for admin is useful if you want to create additional users with their own dashboards or add a second login. Here’s how:

  1. Click the people icon (Users) in the bottom-right corner.
  2. For the admin user, click the pencil icon in the EDIT column.
  3. Enter an email address under Email. The field is required, but Heimdall doesn’t send emails.
  4. Set a strong password under Password and Confirm Password.
  5. Leave Allow public access to front turned off. Heimdall will then require a login even for the homepage. If enabled, the dashboard and all its tiles would be visible without logging in.
  6. Also leave Allow logging in from a specific URL turned off. This option generates a link that anyone can use to log in without a password.
  7. Click Save.

After logging in to the app, Heimdall will now also show its own login page with your user account. To add more people, go to Users and click ADD. You can also change the admin name when editing the user.

Updates and Backups

Update Heimdall in the app settings (gear icon) under App update. Click Check for updates, then install a new version using Apply update. If it says the app is up to date, there isn’t a newer version in the app catalog yet.

Tiles, users, and settings are stored in the app’s data volume and are retained during updates. You can also quickly back up your tiles in Heimdall under Settings by clicking EXPORT. See the “Export and Move Tiles” section for more details. Back up the entire VPS using Backups in the dashboard.

Manual Installation

The rest of this guide covers the manual installation of Heimdall with Docker Compose on your VPS—for example, if you don’t use One-Click Apps on your server or want to run Heimdall behind your own reverse proxy. We’ll use the image from linuxserver.io, which the One-Click App also uses.

Requirements

  • A Linux VPS running Debian or Ubuntu with SSH access. See First SSH Access.
  • Docker and Docker Compose (Compose v2). See Install Docker. Verify the installation with docker --version and docker compose version.
  • A domain or subdomain whose A record points to your VPS’s IP address (e.g. heimdall.example.com).

Heimdall is a PHP application with an SQLite database and also runs on small servers. The figures below are estimates for Heimdall alone. If you’re running other software on the server, account for its resource requirements too.

HardwareMinimumRecommended
CPU1 vCPU core1 vCPU core
RAM1 GB2 GB
Storage5 GB10 GB

Prepare the Firewall

Heimdall listens on port 80 (HTTP) and 443 (HTTPS with a self-signed certificate) inside the container. In this guide, you’ll access Heimdall only through a reverse proxy, so you don’t need to open either container port. With ufw, allow only SSH and the ports used by the reverse proxy:

Code
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Warning: Docker bypasses ufw

Ports published by Docker using ports: are accessible externally even if ufw blocks them. Docker adds its own rules before those from ufw. Therefore, bind Heimdall to 127.0.0.1 as described below. For more information, see Managing the Firewall on Linux.

Install with Docker Compose

Create a directory for Heimdall:

Code
mkdir -p /opt/heimdall
cd /opt/heimdall

Then create the docker-compose.yml file, for example, using nano docker-compose.yml, and add this content:

Code
services:
  heimdall:
    image: lscr.io/linuxserver/heimdall:2.8.4
    container_name: heimdall
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - ./config:/config
    ports:
      - "127.0.0.1:8080:80"

Here’s what the important lines do:

  • image: The Heimdall image from linuxserver.io at a fixed version. This lets you decide when to update.
  • PUID and PGID: The user and group IDs Heimdall runs under in the container. They’ll own the files in the config folder.
  • TZ: The time zone, for example Europe/Berlin.
  • ./config:/config: This is where the database, uploaded icons and backgrounds, and the container’s nginx configuration are stored. You’ll back up this folder later.
  • 127.0.0.1:8080:80: Heimdall is accessible only from the server itself, and externally only through the reverse proxy.

Pull the image and start Heimdall:

Code
docker compose pull
docker compose up -d
docker compose logs -f heimdall

Heimdall is ready when the line [ls.io-init] done. appears in the log. Exit the log view with Ctrl+C.

First Visit

Until you set up the reverse proxy, access Heimdall through an SSH tunnel. Run this command on your own PC:

Code
ssh -L 8080:127.0.0.1:8080 root@SERVER_IP

Then open http://localhost:8080 in your browser. Unlike the One-Click App, your manual installation doesn’t have a login screen in front of it. So set a password for the admin user right away, following the steps above in “Optional: Set a Password for the Heimdall User,” and leave Allow public access to front turned off. This step is essential here: without a password, anyone with the address could change tiles and settings, set a password for the admin user, and lock you out. Make Heimdall publicly accessible through the reverse proxy only after doing this.

HTTPS Access Through a Reverse Proxy

To access Heimdall externally, put a reverse proxy with a valid certificate in front of it. For the basics, see Set Up a Reverse Proxy with nginx and Create an SSL Certificate (Let's Encrypt). Here’s a server block for nginx:

Code
server {
    listen 80;
    server_name heimdall.example.com;

    client_max_body_size 10M;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
    }
}

Then get the certificate using certbot --nginx -d heimdall.example.com. Certbot adds HTTPS and the HTTP redirect to the block. The X-Forwarded-Proto header tells Heimdall that the browser is connected over HTTPS. Without it, the page loads without styles because the browser blocks files served over HTTP. client_max_body_size allows larger background images to be uploaded.

Info: Use a subdomain only

According to the project, Heimdall only works on its own domain or subdomain, not in a subdirectory such as example.com/heimdall.

For more tips on securing your server, see Linux Security Tips.

Back Up Your Data

Everything Heimdall stores is in the /opt/heimdall/config folder: the SQLite database www/app.sqlite with tiles, users, and settings; uploaded icons and backgrounds; and the nginx configuration. Briefly stop Heimdall to create a consistent backup:

Code
cd /opt/heimdall
docker compose stop
tar czf heimdall-backup-$(date +%F).tar.gz config docker-compose.yml
docker compose start

Don’t keep the backup only on the VPS itself.

Update Heimdall

Back up the config folder first. Then enter the new version for the image in docker-compose.yml and restart Heimdall:

Code
cd /opt/heimdall
docker compose pull
docker compose up -d
docker image prune

Available versions are listed on the image’s release page. Your data in the config folder is retained during the update. docker image prune then removes the old image.

Customize Your Heimdall Dashboard

Once setup is complete, fill your dashboard with tiles. You can do everything using the toolbar in the bottom-right corner.

Create Your First Tile

  1. Click the list icon (Application list) in the bottom-right corner, then click ADD. Alternatively, use the “Add an application here” link on the empty dashboard.
  2. Select an app under Application Type, such as Nextcloud. Heimdall recognizes hundreds of apps and automatically sets their icon, color, and description. For a website of your choice, leave it set to None.
  3. Enter the name you want displayed on the tile under Application name.
  4. Enter the full address under URL, including https://. For One-Click Apps, use the address from the Access link.
  5. Leave PINNED turned on so the tile appears on the dashboard. Unpinned tiles are only available in the Application list.
  6. Click SAVE.

To change the order, click the icon with two arrows (Reorder and pin items), then drag the tiles into place.

Live Data with Enhanced Apps

Heimdall offers so-called Enhanced Apps for some apps. When you select one as the Application Type, the Config (Optional) section appears in the form. Turn on ENABLE and enter the address and either a user with a password or an API key, depending on the app. Use TEST to check the connection. The tile will then show live data, such as queue and download speeds for NZBGet or SABnzbd.

Info: Internal addresses are blocked

To prevent misuse, Heimdall blocks requests to private addresses such as 127.0.0.1, 10.x.x.x, or 192.168.x.x. The connection will fail with a 403 error. Use the app’s public HTTPS address. Only if Heimdall itself is protected, you can set ALLOW_INTERNAL_REQUESTS=true in the Compose file for a manual installation.

Where possible, create a separate account or an API key with limited permissions for Enhanced Apps instead of using your admin account.

Tags, Search Bar, and Background

  • Tags: Create tags such as Media or Management under Tags list and assign them to tiles. This lets you group related apps. Choose how Heimdall displays the groups under Settings, using Treat Tags As. The default is Folders.
  • Search bar: Under Settings, set Homepage Search to Yes and select a Default Search Provider, such as DuckDuckGo. Choose Tiles to search your own tiles.
  • Background: Upload your own image under Background Image. Alternatively, Heimdall can generate a pattern using Trianglify.
  • Link opens in: Choose whether tiles open in the same tab or a new tab.

With the search bar and background set up, add your Heimdall address as your browser’s homepage.

Export and Move Tiles

At the top of Settings, you’ll find EXPORT and IMPORT. EXPORT downloads the HeimdallExport.json file containing all your tiles: their names, addresses, colors, app types, tags, and whether they’re pinned. Users, settings, and Enhanced App credentials aren’t included. Use IMPORT to load the file into a new Heimdall installation, for example, when switching from a manual installation to the One-Click App.

Limitations

  • No monitoring: Heimdall displays links and some values for Enhanced Apps, but doesn’t report outages. Use Uptime Kuma for that.
  • Doesn’t protect the apps themselves: The login only protects Heimdall. Each app linked from a tile still needs its own login.
  • Live data is available only for certain apps: Not every app in the list is an Enhanced App. For most apps, Heimdall only sets the icon and color.
  • No version control: Heimdall saves changes directly to the database. If you want to manage your dashboard as a file, Glance or Homepage may be a better fit.

Conclusion

Heimdall gives you a clear homepage for all your web apps, which you can set up entirely in your browser. The One-Click App is protected by a generated login from the start. With a manual installation, set a password for the admin user as soon as you launch Heimdall. Then create tiles, enable live data for supported apps, and use Heimdall as your browser’s homepage.

Prefer to avoid the Docker setup? Take the easy route with the One-Click App, as described above in “The Easy Way: Heimdall as a One-Click App.”

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the fastest option: Heimdall is available over HTTPS on your domain in about a minute, is protected by a generated login from the start, and can be updated from the dashboard under App update. Manual installation with Docker Compose is a good choice if you don’t use One-Click Apps on your server, want Heimdall behind your own reverse proxy, or need to allow internal addresses for Enhanced Apps. With a manual installation, set a password for the admin user as soon as Heimdall starts.
Yes, with the One-Click App: it adds a login screen before Heimdall. Find the username and password on the app card by clicking the gear icon, then going to App environment and checking the automatically generated values (SERVICE_USER_HEIMDALL and SERVICE_PASSWORD_HEIMDALL). A manual installation does not include this login: Heimdall creates an admin user with no password. Click Users in the bottom-right corner, edit the admin user, enter an email address and password, leave Allow public access to front turned off, and click Save.
You can set up Heimdall entirely in your browser and create tiles linking to your apps, with live data available for some apps. Glance brings together feeds, weather, calendars, and service status, and is configured using the glance.yml file. Homepage displays services with status and API widgets and is configured using YAML files. Heimdall is the quickest option if you want to avoid configuration files.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.