analogarchivejs

Setup Instructions v4.1.3
What is this? A self-hosted music streaming server that works entirely with local files. No database, no tracking, completely private.

What You'll Need

Step 1: Download the Project

Download the latest release from GitHub and extract it to a folder on your computer.

GitHub Release Page
Download the latest release from GitHub

Step 2: Set Up Your Configuration

First, copy the example configuration file to create your own .env file:

cp .env.example .env

Now open the .env file in a text editor and update the paths:

.env file configuration
Example .env configuration file

Required Settings:

MUSIC_DIRECTORY=./music
PORT=55557
SSL_KEY_PATH=./sslcert/key.pem
SSL_CERT_PATH=./sslcert/cert.pem
HOST_MUSIC_PATH=/Users/yourusername/Downloads/analogarchivejs-4.1.3/music
Important: Change HOST_MUSIC_PATH to the actual full path where your music folder is located on your computer!

Optional B2 Settings (for cloud storage):

B2_APPLICATION_KEY_ID=your_key_id
B2_APPLICATION_KEY=your_key
B2_BUCKET_NAME=your_bucket_name

You can leave these blank if you're only using local files.

Step 3: Add Your Music

Create a music folder in the project directory and add your music files. You can organize them however you want - the app will find them all.

Project file structure
Example project structure with music folder

Step 4: Start Docker Desktop

Open Docker Desktop and make sure it's running. You'll see the Docker icon in your menu bar/system tray.

Important: Docker Desktop must be running before you can use docker-compose commands!

Step 5: Build and Start

Open Terminal (Mac/Linux) or PowerShell (Windows), navigate to the project folder, and run:

docker-compose up -d

This will build everything and start the server. First time takes a few minutes.

Docker compose building
Docker building and starting the container

Step 6: Verify It's Running

Open Docker Desktop and check that the container is running:

Docker Desktop showing running container
Container running in Docker Desktop

Step 7: Open the App

Open your browser and go to:

https://localhost:55557
You'll see a security warning - this is normal because we're using a self-signed certificate. Click "Advanced" and then "Proceed" to continue.
App running with one file
The app running with your music library

Using the App

Playing Music

Click any song to start playing. The player shows album art, song info, and playback controls.

Music player with album art
Music player at https://localhost:55557/analog with metadata and album artwork

Searching Your Library

Use the search box at the top to filter by song name, artist, album, or folder. It updates as you type.

Playback Speed

Adjust the speed slider to play faster or slower (useful for audiobooks or learning).

Available Endpoints

Live endpoint
The https://localhost:55557/live endpoint showing cloud-stored files

Managing the Server

Stop the server:

docker-compose down

Restart the server:

docker-compose restart

View logs:

docker-compose logs -f

Rebuild after making changes:

docker-compose up -d --build

Troubleshooting

No music showing up?

Container won't start?

Browser won't connect?

Privacy & Security

Need Help?

Visit the project on GitHub: github.com/jaemzware/analogarchivejs

Enjoy your private music streaming! 🎵