A containerized Node.js application that synchronizes scrobbles from Last.fm, stores them in a local SQLite database, and serves a web dashboard.
Your LastFM is a Node.js application designed to automatically synchronize music scrobbles from Last.fm. It preserves your listening history in a local SQLite database and serves a web interface for data visualization.
The project is fully containerized with Docker, using an automated entrypoint to handle database initialization and sequential execution (Syncing first, then launching the Web API). It also utilizes PM2 as a process manager inside the container to ensure the web service remains active and resilient.
LASTFM_API_KEY=your_lastfm_api_key
LASTFM_USERNAME=your_lastfm_usernameLast.fm: Create an API account here to get your API Key.
services:
your-lastfm:
image: gomaink/your-lastfm
container_name: your-lastfm
ports:
- "1533:1533"
env_file:
- .env
volumes:
- ./data:/app/data
restart: unless-stoppedOn terminal:
docker compose up -d
Then access:
http://localhost:1533
(or replace localhost with your server IP)
This project is licensed under the MIT License.