Install Navidrome Inside Docker Container on Linux

Install Navidrome Inside Docker Container on Linux

Navidrome is an open source web-based music server that allows users to stream their personal music collection from anywhere, on any device.

This tutorial explains how to install Navidrome inside a Docker container on Linux. Commands have been tested on Ubuntu.

Prepare environment

Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.

Install Navidrome

  • Host network

Run the following command to create a container for Navidrome that uses host network:

docker run -d --name=navidrome --restart=always --network=host \
    -v /opt/navidrome/data:/data \
    -v /opt/navidrome/music:/music \
    deluan/navidrome
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, Navidrome service is listening on port 4533. It can be changed with -p option.

docker network create app-net
docker run -d --name=navidrome --restart=always --network=app-net \
    -p 8080:4533 \
    -v /opt/navidrome/data:/data \
    -v /opt/navidrome/music:/music \
    deluan/navidrome

Testing Navidrome

Download sample MP3 file for testing:

sudo wget -qO /opt/navidrome/music/sample.mp3 https://github.com/rafaelreis-hotmart/Audio-Sample-files/raw/master/sample.mp3

Open a browser and go to http://<IP_ADDRESS>:4533, where <IP_ADDRESS> is the IP address of the system. For the first time, you will be asked to create the administrator account. After that, you will be redirected to Navidrome web interface.

Navidrome Inside Docker Container on Linux

Uninstall Navidrome

To completely remove Navidrome, remove its container:

docker rm --force navidrome

Remove Navidrome image:

docker rmi deluan/navidrome

You can also remove Navidrome data, and music:

sudo rm -rf /opt/navidrome

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.