# Self-host Navidrome

> Music server and streamer that serves a personal music collection to browsers and Subsonic-compatible apps. Run your own Navidrome on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.

_Updated November 23, 2026_

Running your own Navidrome usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Navidrome behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.

## Just ask your agent

Open a Hobby workspace, tap **Launch** to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

```text
Set up Navidrome on this workspace and give me the link. Follow https://envhaven.com/self-host/navidrome.md
```

Then open the link it sends and create your Navidrome account straight away, before anyone else finds the address. That is the whole request: the address in it is this page's Markdown copy, and the agent follows the instructions for it further down, with every setting Navidrome's docs require.

## Or keep it private with Tailscale

The preview URL puts Navidrome on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Navidrome an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace's **Vars** pane as `TS_AUTHKEY`, and ask the agent:

```text
Set up Navidrome on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/navidrome.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
```

- On Plus and Pro, a Tailscale container runs beside Navidrome, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
- On Hobby, Tailscale runs in the workspace beside Navidrome; after a restart or an update, ask the agent to start both again.
- Anything other services have to reach, such as a webhook, still needs a public address. [Keep self-hosted apps private with Tailscale](https://envhaven.com/guides/self-host-privately-with-tailscale) covers both, and what Tailscale's free plan includes.

| At a glance |  |
| --- | --- |
| What it is | Music, video and books |
| License | GPL-3.0 |
| Runs as | Docker (`navidrome/navidrome`) or a native install |
| Memory | Not documented |
| Plan that fits | Hobby or larger |
| Web port | 4533 |
| Documentation | [www.navidrome.org/docs/installation/docker/](https://www.navidrome.org/docs/installation/docker/) |

## What your agent takes care of

- **Installing it.** Navidrome runs from the official image, `navidrome/navidrome`, with its data in folders under `~/apps/navidrome`, or without Docker on Hobby.
- **Putting it on an HTTPS address.** The workspace's preview URL serves it, and your own domain can too.
- **Locking it down first.** What Navidrome's docs say to set before it faces the internet, below.
- **Telling you what to back up**: /data in the container (DataFolder: the database and the cache), /music (MusicFolder: the library, mounted read-only) and navidrome.toml in the data folder if you use a config file ([docs](https://www.navidrome.org/docs/installation/docker/)).

### The settings it needs behind a proxy

- `ND_BASEURL` (config file: BaseUrl): URL prefix or full public URL when Navidrome runs behind a proxy; empty by default. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))
- `ND_ADDRESS` (config file: Address): Interface the server binds to; bind it to loopback when only a local proxy or tunnel connects. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))
- `ND_PORT` (config file: Port): HTTP listening port, default 4533. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))
- Reverse proxy with SSL in front: The docs advise putting the built-in HTTP server behind a proxy that handles SSL. ([docs](https://www.navidrome.org/docs/usage/admin/security/))
- `ND_EXTAUTH_TRUSTEDSOURCES` and `ND_EXTAUTH_USERHEADER` (only for authenticating proxies): Proxy addresses allowed to log users in through a header (default header Remote-User); empty means deny all. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))

### Before it faces the internet

- The first run asks you to create the admin user; do it yourself before the address is shared. ([docs](https://www.navidrome.org/docs/getting-started/))
- Run it behind a reverse proxy with SSL when exposed. ([docs](https://www.navidrome.org/docs/usage/admin/security/))
- A login rate limiter is on by default. ([docs](https://www.navidrome.org/docs/usage/admin/security/))
- Stored passwords use a shared key by default; set PasswordEncryptionKey once to replace it. ([docs](https://www.navidrome.org/docs/usage/admin/security/))
- The key option exists and must be set once. ([docs](https://www.navidrome.org/docs/usage/admin/security/))

## Things to ask next

Everything after the install is one more sentence to the agent. Some that come up:

- "Organize the files in ~/apps/media into folders the server can scan."
- "Make a library for each kind of media."
- "Move Navidrome to app.example.com." Add the domain on the dashboard's Domains page with a CNAME to `domains.envhaven.app`, and the agent changes Navidrome's address settings to match.
- "Update Navidrome to the latest release." It pulls the new image and recreates the container, data kept.

## Instructions for the agent

The agent reads these from the page's Markdown copy. They also work pasted on their own, if you would rather give them in your own words.

```text
Set up Navidrome on this workspace and serve it at my preview URL.
- Where Docker has a daemon (Plus and Pro), use Docker Compose with the official image, navidrome/navidrome, starting from the docs' compose file: https://www.navidrome.org/docs/installation/docker/. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- Keep the compose file in ~/apps/navidrome and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Navidrome's port 4533.
- Without Docker (on Hobby, where Docker has no daemon), install it as its docs describe, with the Linux release from its GitHub releases page (ffmpeg installed on the host; no language runtime), into ~/apps/navidrome with its data, so it survives workspace updates; global installs and system paths do not. Run it in a tmux window named navidrome, listening on 0.0.0.0:4533, and point my preview URL at port 4533.
- The preview URL terminates HTTPS in front of Navidrome: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/navidrome.md for the preview URL, as Navidrome's docs describe for running behind a proxy; skip any that apply only when Navidrome serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/navidrome.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Navidrome up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.
```

## What to know

- In Docker, Navidrome's containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
- Without Docker, Navidrome runs as a process in the workspace, so after a restart or an update, ask the agent to start it again.
- Jukebox mode plays through audio hardware on the server, which a cloud VPS does not have. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))
- The music library is read from a folder on the server, so a cloud install needs the files copied or mounted there. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))
- Anonymous data collection is on by default and sends data outbound; it can be switched off. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))
- One switch disables every outbound integration, including data collection and login background images. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))
- Artwork uploads through the web UI are capped at 10 MB, far below a 100 MB tunnel limit. ([docs](https://www.navidrome.org/docs/usage/configuration/options/))
- A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.

## Without a workspace

The manual route, on a server you run:

1. Rent a Linux VPS, secure SSH, and create a user for the app.
2. Install Docker and write a compose file from the official image.
3. Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
4. Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
5. Keep the firewall closed except for the proxy, and schedule backups and updates.

Navidrome's own [documentation](https://www.navidrome.org/docs/installation/docker/) covers each step for its install methods.

## Sources

Facts about Navidrome come from its own documentation, checked on 2026-11-23:

- [navidrome.org/docs/installation/docker](https://www.navidrome.org/docs/installation/docker/)
- [navidrome.org/docs/installation](https://www.navidrome.org/docs/installation/)
- [navidrome.org/docs/usage/configuration/options](https://www.navidrome.org/docs/usage/configuration/options/)
- [navidrome.org/docs/usage/admin/security](https://www.navidrome.org/docs/usage/admin/security/)
- [navidrome.org/docs/getting-started](https://www.navidrome.org/docs/getting-started/)

## Keep reading

- [Self-host any app with your agent](https://envhaven.com/self-host)
- [Self-host Jellyfin](https://envhaven.com/self-host/jellyfin)
- [Self-host Audiobookshelf](https://envhaven.com/self-host/audiobookshelf)
- [AI agent hosting](https://envhaven.com/guides/ai-agent-hosting)

Source: https://envhaven.com/self-host/navidrome
