Clone the repository and create the music folder. Edit .env: MUSIC_DIR is the folder with your music and PUBLIC_URL is the origin your apps connect to, for example https://music.yourdomain.com, without /api/v1.
git clone https://github.com/mateodd1/DoubleMusic.git
cd DoubleMusic
cp .env.example .env
mkdir -p music
Start it with the prebuilt image:
docker compose -f compose.release.yml pull
docker compose -f compose.release.yml up -d
Create your account. Type the password in your terminal; it will not stay in your shell history:
read -r -s -p 'Password: ' MUSIC_PASSWORD; printf '\n'
printf '%s\n' "$MUSIC_PASSWORD" | docker compose -f compose.release.yml exec -T doublemusic node cli.js add admin --admin --password-stdin
unset MUSIC_PASSWORD
No access to the registry from the server? Load the downloaded archive, verifying its checksum first:
sha256sum --check SHA256SUMS --ignore-missing
docker load -i doublemusic_*_linux_amd64.docker.tar.gz
DOUBLEMUSIC_IMAGE=doublemusic:1.4.1 docker compose -f compose.release.yml up -d --pull never