Video coming soon…
🎬 Setup Your Spotify — Self-Hosted Spotify Listening Stats
Deploy Your Spotify on Ubuntu with Docker and MongoDB — track your Spotify listening history and get detailed stats all year round, not just at Wrapped time, on port 3058.
⚠️ This script is provided for demo and testing purposes only. Not intended for production use.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/media/your-spotify/your-spotify-ubuntu.sh
chmod +x your-spotify-ubuntu.sh
sudo bash your-spotify-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/media/your-spotify/your-spotify-ubuntu.sh
2 Make it Executable
chmod +x your-spotify-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, prompts you for your Spotify app's public and secret keys, and starts three containers — MongoDB, the API server on 8218, and the web client on 3058.
sudo bash your-spotify-ubuntu.sh
4 Log In with Spotify
Open the web client and log in with Spotify to start recording your listening history:
http://<your-server-ip>:3058
Ports Used
| Port | Purpose |
|---|---|
| 3058 | Web client (host → container 3000) — the interface you open |
| 8218 | API server (host → container 8080) — redirect URI must match |
| internal | MongoDB 6 (your-spotify-mongo, not published) |