-
Notifications
You must be signed in to change notification settings - Fork 0
Extras
Optional pieces are Docker Compose profiles. The installer asks about the Discord bot and Cloudflare Tunnel. Redis and Meilisearch are in the repo compose file only; add them yourself on a one-click host if you need them.
Work from /opt/sounddock after install.
The bot plays from your SoundDock library. It does not play YouTube or Spotify.
During install: answer y when asked to enable the worker. You can paste a bot token then, or set it later.
After install:
-
Set
SOUNDDOCK_DISCORD_BOT_TOKENin/opt/sounddock/.env, or paste the token in Admin → Integrations → Discord. -
Start it:
cd /opt/sounddock docker compose --profile discord up -d -
In the web UI, use Invite SoundDock Bot. Do not invent OAuth URLs by hand.
-
In Discord, run
/linkand finish the challenge in the web UI. Never type SoundDock credentials into Discord.
Use this to publish SoundDock without opening a port on the host.
-
Create a tunnel in Cloudflare Zero Trust and copy the token.
-
During install, paste the token when asked, or later add to
.env:CLOUDFLARE_TUNNEL_TOKEN=... SOUNDDOCK_PUBLIC_URL=https://your-hostname SOUNDDOCK_COOKIE_SECURE=true -
Start it:
cd /opt/sounddock docker compose --profile cloudflare up -d -
Point the tunnel at port
8080. Update the Discord OAuth redirect tohttps://your-hostname/api/v1/auth/discord/callback.
Default: /opt/sounddock/libraries, mounted read-only at /libraries.
Put files in that folder, then add a library in the UI that points at /libraries (or a subfolder). To change the host path, set SOUNDDOCK_LIBRARY_HOST when running Compose, or edit the volume in docker-compose.yml.
Only in the repo docker-compose.yml:
# .env
SOUNDDOCK_REDIS_URL=redis://redis:6379/0
docker compose --profile redis up -dOnly in the repo docker-compose.yml:
# .env
SOUNDDOCK_MEILISEARCH_URL=http://meilisearch:7700
SOUNDDOCK_MEILISEARCH_KEY=a-long-random-key
docker compose --profile search up -dSOUNDDOCK_METRICS_ENABLED=true
SOUNDDOCK_METRICS_TOKEN=...
Scrape /metrics. Send Authorization: Bearer <token> when a token is set.
cd /opt/sounddock
docker compose --profile discord --profile cloudflare up -d