-
Notifications
You must be signed in to change notification settings - Fork 0
Extras
Optional pieces are Docker Compose profiles. The installer can enable Cloudflare Tunnel. The Discord bot is started later from /opt/sounddock after you set the token in Admin. Redis and Meilisearch are in the repo compose file only.
Work from /opt/sounddock after install.
The bot plays from your SoundDock library. It does not play YouTube or Spotify.
After install:
-
Paste the bot token in Admin → Discord.
-
Add
discordtoCOMPOSE_PROFILESin/opt/sounddock/.env, then:cd /opt/sounddock docker compose 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=... SD_PUBLIC_URL=https://your-hostname SD_COOKIE_SECURE=true -
Start it by adding
cloudflaretoCOMPOSE_PROFILESin/opt/sounddock/.envif needed, then:cd /opt/sounddock docker compose 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 SD_LIBRARY_HOST in /opt/sounddock/.env and run docker compose up -d from that directory.
Only in the repo docker-compose.yml:
# .env
SD_REDIS_URL=redis://redis:6379/0
docker compose --profile redis up -dOnly in the repo docker-compose.yml:
# .env
SD_MEILISEARCH_URL=http://meilisearch:7700
SD_MEILISEARCH_KEY=a-long-random-key
docker compose --profile search up -dSD_METRICS_ENABLED=true
SD_METRICS_TOKEN=...
Scrape /metrics. Send Authorization: Bearer <token> when a token is set.
cd /opt/sounddock
docker compose --profile discord --profile cloudflare up -d