Skip to content

Set Up Navidrome on a Linux Server – Stream Your Personal Music Collection

Set up Navidrome on your Linux server: as a One-Click App with HTTPS or manually with Docker Compose. Includes an admin account, music uploads via SFTP, tags, Subsonic apps for phones and PCs, users, sharing, and backups.

27 November 202612 min read1 Views0 helpful

Introduction

Navidrome is a free, self-hosted music streaming server. You store your own music collection on your server, and Navidrome reads the files’ tags, organizes everything by artist, album, and genre, and streams your music to your browser or smartphone. Because Navidrome supports the Subsonic API, you can use many ready-made music apps for Android, iOS, and desktop. Navidrome is open source and free of charge.

In this guide, we’ll show you two ways to set it up: the easy way using your VPS’s One-Click Apps and the manual installation using Docker Compose. After that, you’ll upload your music, connect apps on your phone and PC, and set up accounts for family and friends.

When it makes sense to run Navidrome on a VPS

A dedicated music server in a data center is especially useful if:

  • You want your music collection to be available everywhere, without having to keep a computer or NAS running at home.
  • You want to listen to your own files instead of paying for a streaming subscription, such as purchased albums, digitized CDs, or music in FLAC format.
  • You want to use multiple apps. Many music apps for smartphones and desktops work with Navidrome through the Subsonic API.
  • You want family or friends to listen too. Each person gets their own account with their own playlists and favorites.
  • You want to keep server resource usage low. According to Navidrome, the software requires very few resources and even runs on a Raspberry Pi Zero.

Navidrome is less suitable if you expect a catalog like those offered by streaming services: Navidrome only plays files that you upload yourself. A collection without clean tags (artist, album, title) is also a poor fit, because Navidrome sorts exclusively by tags, not folders.

If you also want to stream movies and TV shows, Jellyfin is the better-known alternative. Both are available as One-Click Apps.

NavidromeJellyfin
ContentMusic onlyMovies, TV shows, and music
One-Click App foldersOne music folderOne folder each for movies and TV shows
AppsMany Subsonic apps for Android, iOS, and desktopOfficial Jellyfin apps for smartphones, smart TVs, and desktop
OrganizationStrictly by file tagsBy folder and file names, as well as metadata from the internet

If you only want music, Navidrome is the lighter option. Choose Jellyfin for a media library with movies and TV shows.

The easy way: Navidrome as a One-Click App

The fastest way to get your own music server is with your VPS’s One-Click Apps. ZapX sets up your domain and HTTPS for you, and you don’t need the console to install it.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps for instructions.
  • Enough storage for your music. A large FLAC collection can quickly require several hundred gigabytes.

Install

  1. Open your VPS in the ZapX dashboard and switch to the One-Click Apps tab.
  2. Search for Navidrome in the App catalog and click Install app.
  3. Leave Use a custom subdomain or zap.cloud enabled and choose an address. With a domain, Navidrome is available over HTTPS; without one, it’s only available over HTTP. HTTPS is strongly recommended for apps on your smartphone.
  4. Under App configuration, you’ll see four optional variables, such as ND_LOGLEVEL and ND_SESSIONTIMEOUT. You don’t need to change anything. Click Queue installation. The app will be online in one to two minutes.
Warning

Create the admin account immediately after installation Navidrome does not come with a preconfigured account. Whoever visits the address first creates the admin account. So open the app at its address as soon as installation is complete.

First visit: Create the admin account

The first time you open Navidrome, you’ll see “Thanks for installing Navidrome!” and the admin account form. Enter a username and a secure password twice, then click “Create Admin.” You’ll be signed in right away. Until there’s music on the server, Navidrome displays “No Albums yet.”

The One-Click App comes with an empty music folder. See “Upload music” below to learn how to add your files. Navidrome detects new files automatically: in our test, uploaded tracks appeared in the library a few seconds later.

Set up automatic scans

The installed version of Navidrome no longer reads the ND_SCANSCHEDULE variable from the installation form, so regular full scans are disabled. You don’t need them for new files; file monitoring handles those. If you still want the entire library to be checked regularly, for example after changing tags:

  1. Open the app settings (gear icon) and switch to App environment.
  2. Under Custom environment variables, click the plus icon.
  3. Enter ND_SCANNER_SCHEDULE as the key and, for example, @every 24h as the value.
  4. Click Save. Navidrome will restart, but your accounts and music will remain intact.

Updates and backups

To update Navidrome, open the app settings (gear icon) and go to App update. Click Check for updates, then install a new version with Apply update. If it says the app is up to date, there isn’t a newer version in the App Catalog yet.

The database and music are stored on your server in /data/coolify/services/<ID>/; the database is in the data subfolder and the music is in the music subfolder. Find the ID as described under “Upload music.” To create a backup, stop the app under App actions, copy the data folder to another system, and start the app again. You should keep a separate copy of your music anyway.

Warning

Uninstalling also deletes your music If you uninstall the app and choose to delete its data, the panel removes the entire app folder, including the music folder. Back up your music first.

Manual installation

The rest of this guide covers manual installation from the console using Docker Compose. This is useful, for example, if you want to integrate Navidrome into an existing server environment or store your music in a separate folder. The instructions are based on Navidrome’s official Docker guide.

Requirements

  • A Linux server running Debian or Ubuntu that you can access via SSH.
  • Docker with the Compose plugin. See our guide Set Up Docker for installation instructions.
  • For HTTPS access, a domain or subdomain whose A record points to your server’s IP address (e.g., music.example.com).
HardwareMinimumRecommended
RAMNo fixed requirements; Navidrome is very lightweightSome extra capacity if multiple people listen with transcoding at the same time
CPUNo fixed requirementsMore cores if many streams are transcoded
StorageThe size of your music collection, plus some space for the database and cacheAdditional space for database backups

Navidrome doesn’t specify fixed minimum requirements, but does state that it needs very few resources. Transcoding tracks generates most of the load; see “Limitations” for more information.

Prepare the firewall

Only SSH and the reverse proxy for HTTPS need to be accessible from the internet. With ufw, it looks like this:

Code
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable

Don’t open port 4533, which Navidrome listens on. Learn more in Managing the Firewall on Linux.

Warning

Docker bypasses ufw If Docker publishes a port on all network interfaces, it adds its rules without going through ufw. The port would then be accessible from the internet despite the firewall, and anyone could create the first account before you set up the admin account. So bind port 4533 to 127.0.0.1, as shown in the next step.

Install with Docker Compose

Create a directory with subfolders for data, music, and backups. According to its documentation, Navidrome should not run as root. So assign the folders their own owner, using the ID 1000 here:

Code
mkdir -p /opt/navidrome/data /opt/navidrome/music /opt/navidrome/backup
chown -R 1000:1000 /opt/navidrome/data /opt/navidrome/backup
chmod -R a+rX /opt/navidrome/music
cd /opt/navidrome
nano compose.yaml

Add this configuration, which is based on the example in the official guide:

Code
services:
  navidrome:
    image: navidrome/navidrome:0.64.2
    container_name: navidrome
    user: 1000:1000
    ports:
      - 127.0.0.1:4533:4533
    restart: unless-stopped
    environment:
      ND_BASEURL: https://music.example.com
      ND_SCANNER_SCHEDULE: "@every 24h"
      ND_BACKUP_PATH: /backup
      ND_BACKUP_SCHEDULE: "0 3 * * *"
      ND_BACKUP_COUNT: 7
    volumes:
      - ./data:/data
      - ./music:/music:ro
      - ./backup:/backup

The most important lines:

  • image: The official image with a fixed version. This lets you decide when to update.
  • user: Navidrome runs with ID 1000 instead of as root. This ID needs write access to data and backup and read access to music. According to Navidrome, the image doesn’t read the PUID and PGID variables.
  • ports: Navidrome is only accessible on the server itself through port 4533. External access will go through the reverse proxy later.
  • ND_BASEURL: The address where Navidrome will be accessible.
  • ND_SCANNER_SCHEDULE: A full library scan once a day. Navidrome also detects new files immediately through file monitoring.
  • ND_BACKUP_PATH, ND_BACKUP_SCHEDULE, ND_BACKUP_COUNT: Creates a database backup in ./backup every day at 3 a.m. and keeps the seven most recent backups.
  • ./music:/music:ro: Your music is read-only for Navidrome. Navidrome never changes your files.

By default, Navidrome sends anonymous usage data to the project. If you don’t want this, add the line ND_ENABLEINSIGHTSCOLLECTOR: "false" under environment. The One-Click App already has this disabled. Start Navidrome from the same directory:

Code
docker compose up -d

Check whether the container is running with docker compose ps, and view the logs with docker compose logs -f.

First visit

The first account you create becomes the admin account. Set it up before making Navidrome publicly accessible. The easiest way is through an SSH tunnel from your own computer:

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

Once connected, open http://localhost:4533 in your browser and create the admin account as described above under “First visit: Create the admin account.”

Access over HTTPS through a reverse proxy

For ongoing use and app access, make Navidrome available over HTTPS through a domain. Navidrome explicitly recommends running the server behind a reverse proxy with SSL. For the basics, see Set Up an nginx Reverse Proxy and Create an SSL Certificate (Let's Encrypt). Here’s an nginx server block:

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

    location / {
        proxy_pass http://127.0.0.1:4533;
        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;
    }
}

Then get the certificate with certbot --nginx -d music.example.com. Certbot adds HTTPS and the HTTP redirect to the block. Make sure ND_BASEURL in the Compose file matches this address exactly. The block forwards all paths, including /rest for apps and /share for shared links.

Tip

Caddy instead of nginx Caddy makes this shorter: it gets the certificate automatically. This entry in the Caddyfile is enough: music.example.com { reverse_proxy 127.0.0.1:4533 }.

Back up your data

According to Navidrome, the automatic backup configured in the Compose file contains only the database: accounts, playlists, favorites, and play counts. It doesn’t include your music or configuration. You can also create a backup manually at any time:

Code
cd /opt/navidrome
docker compose run --rm navidrome backup create

To restore a backup, stop Navidrome first; otherwise, the database may be damaged. You’ll find the backup file name in the backup folder:

Code
docker compose stop navidrome
docker compose run --rm navidrome backup restore --backup-file navidrome_backup_DATUM.db
docker compose start navidrome

Regularly copy the backup and music folders to another system, for example with rsync:

Code
rsync -a /opt/navidrome/backup /opt/navidrome/music BACKUP_USER@BACKUP_HOST:/backup/navidrome/

Update Navidrome

Create a backup first. Then enter the new version for image in compose.yaml and pull it:

Code
cd /opt/navidrome
docker compose pull
docker compose up -d

Read the Navidrome release notes first. On its first start after an update, Navidrome may modify the database and rescan the library. This can take a few minutes for large collections. Remove old images afterward with docker image prune.

Music, apps, and users

Whether you use the One-Click App or manual installation, the steps from here on are the same; only the music folder differs.

Upload music

Navidrome intentionally doesn’t have an upload feature. Upload your files to the server as root using SFTP. See Connect via SFTP for instructions.

  • One-Click App: In the console, docker ps | grep navidrome shows the container name in the last column, for example, navidrome-abc123. The part after navidrome- is the ID. Upload your music to /data/coolify/services/<ID>/music.
  • Manual installation: Upload your music to /opt/navidrome/music. Then run chmod -R a+rX /opt/navidrome/music so Navidrome can read the new files.

Navidrome detects new files automatically after a few seconds. As an admin, you can also find the Quick Scan and Full Scan buttons under “Libraries” (at /app/#/library) if you want to start a scan manually.

Tip

Upload music in your browser Navidrome recommends a browser-based file manager such as FileBrowser if you want to upload without an SFTP program. See our FileBrowser guide to learn how to set it up.

Organize and tag your music

Navidrome sorts music exclusively by the tags in your files, not by folders. Make sure the title, artist, album, and album artist information is complete. A clear folder structure can still help you manage your files:

Code
Artist/Album (Year)/01 - Title.mp3

A few guidelines from the Navidrome documentation:

  • Compilations: For albums with multiple artists, the compilation tag must be set on every track (TCMP=1 for MP3, COMPILATION=1 for FLAC). Otherwise, the album will be split into many individual albums.
  • Same album artist: If an album has tracks such as “Alice feat. Bob,” the album artist must be the same for every track.
  • Editing tags: Navidrome never writes to your files. For tagging, Navidrome recommends programs such as MusicBrainz Picard or beets.

Navidrome plays MP3, FLAC, AAC, OGG, OPUS, WMA, APE, WavPack, and other formats. Learn more in the Navidrome tagging rules.

Connect apps on your phone and PC

You can use Navidrome directly in your browser at your installation’s address. For smartphones and desktops, use an app that’s compatible with Subsonic. Here are a few options from Navidrome’s app list:

  • Android: Symfonium, Ultrasonic, Tempo, Substreamer
  • iOS: Amperfy, Substreamer, play:Sub
  • Windows, macOS, and Linux: Feishin, Supersonic

Enter your installation’s address in the app as the server, for example, https://music.example.com, along with your username and password. To check whether the Subsonic API is responding, open this address in your browser (replace the placeholders):

Code
https://music.example.com/rest/ping.view?u=USERNAME&p=PASSWORD&v=1.16.1&c=test&f=json

If you get "status":"ok", the address and login details are correct. If you get "Wrong username or password", check your login details. Use this address only for testing, because the password appears in plain text.

Info

Jellyfin music apps Since version 0.64, Navidrome can also respond to some Jellyfin API requests, allowing music apps such as Finamp or Jellify to connect. This feature is experimental and disabled by default. Enable it with the environment variable ND_JELLYFIN_ENABLED and the value true.

Users and sharing

As an admin, create additional accounts under “Users” (at /app/#/user) by clicking “Create.” For each account, set a username, name, password, and optionally admin permissions (“Is Admin”). Under “Libraries,” choose which libraries the person can access. Each account has its own playlists, favorites, and ratings. Only grant admin permissions to people who will help you manage the server.

Share individual tracks, albums, or playlists as a link using “Share.” Anyone with the link can listen to or download the music without an account. New links expire after one year by default. To disallow public links, disable the feature by setting ND_ENABLESHARING to false.

Limitations of Navidrome on a VPS

  • Transcoding uses CPU: If an app requests a lower bitrate, Navidrome transcodes the track with ffmpeg. Each of these streams uses CPU resources. You can limit the number of simultaneous transcodes with ND_TRANSCODING_MAXCONCURRENT. The least resource-intensive option is for apps to play the original file.
  • No uploading or tag editing: Files can only be added to the server via SFTP or a separate file manager, and you’ll need a separate program to edit tags.
  • No folder view: Navidrome displays music sorted only by tags. Files without tags won’t appear correctly.
  • Storage space: Your music is stored on the server. With the One-Click App, more space means a larger VPS plan.

Conclusion

You’ve set up Navidrome on your server, uploaded your music, and learned how to connect apps, manage accounts, and back up your data. You now have your own music streaming server, making your collection available around the clock on all your devices without a subscription.

Prefer to skip the Docker setup? Choose the easy One-Click App option described above under “The easy way: Navidrome as a One-Click App.” You can set up your domain and HTTPS and install updates with just a few clicks.

Find more information on the Navidrome website and in the Navidrome documentation.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the fastest option: Navidrome runs on your domain over HTTPS in one to two minutes, and you can install updates from the dashboard. Manual installation with Docker Compose is useful if you want to control the version, run Navidrome without root permissions, set up automatic database backups, or store your music in a separate folder.
Navidrome intentionally doesn’t have an upload feature. Upload your files to the server via SFTP: for the One-Click App, use /data/coolify/services/<ID>/music; for a manual installation, use /opt/navidrome/music. Navidrome detects new files automatically after a few seconds. Alternatively, use a browser-based file manager such as FileBrowser.
Navidrome sorts music exclusively by the tags in your files, not by folders. If artist, album, or album artist information is missing, tracks may not appear correctly. For compilations, the compilation tag must be set on every track; otherwise, the album will be split up. Fix the tags with a program such as MusicBrainz Picard, then run a Full Scan under Libraries.

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.