Skip to Content
Getting startedInstallation

Installation

Deploy Music Box with Docker Compose and serve the web player over HTTPS.

Prerequisites

You need Docker Engine, the Docker Compose plugin, Git, and a host where the stack can run. For a public installation, point a hostname at the host and make HTTP and HTTPS available to Caddy.

Download and configure

Get the source

The commands below use the Jam sessions branch.

git clone --branch feat/jam-sessions https://github.com/arookiecoder-ip/youtube-music-alexa-skill.git
cd youtube-music-alexa-skill
cp .env.example .env
chmod 600 .env
touch cookies.txt

Set your hostname and credentials

Edit .env using the configuration reference. Set SITE_ADDRESS to your hostname and PUBLIC_BASE_URL to its HTTPS origin. Set REMOTE_USER and REMOTE_PASSWORD for the owner login. Replace the credential placeholders, including the required YT_BROWSER_CONTROL_TOKEN and MUSICBOX_EGRESS_TOKEN. Generate a fresh value for each independent secret.

openssl rand -hex 32

Validate and start

Run these commands from the repository root.

docker compose config --quiet
docker compose up -d --build
docker compose ps

Confirm the installation

Replace music.example.com with your configured hostname. Readiness should return HTTP 200 after the backend comes up.

curl --fail --silent --show-error https://music.example.com/health/ready

Open the site and sign in. An empty cookies.txt permits an anonymous attempt. If provider access fails, check Troubleshooting.

On this page