Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cuddlyclara/webradio
Docker image which creates a simple HTTP webradio using MPD that randomly plays your music.
https://github.com/cuddlyclara/webradio
docker dockerfile http mpd music-player webradio
Last synced: 25 days ago
JSON representation
Docker image which creates a simple HTTP webradio using MPD that randomly plays your music.
- Host: GitHub
- URL: https://github.com/cuddlyclara/webradio
- Owner: cuddlyclara
- Created: 2024-12-15T15:05:41.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-15T16:05:04.000Z (about 1 month ago)
- Last Synced: 2024-12-15T16:25:47.488Z (about 1 month ago)
- Topics: docker, dockerfile, http, mpd, music-player, webradio
- Language: Dockerfile
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Simple webradio with MPD
This Docker image sets up a simple HTTP webradio powered by MPD (Music Player Daemon). It automatically plays all music files in the `./media` folder in random order.
## Docker Compose Example
To get started quickly, you can use the following `docker-compose.yml` configuration:
```yaml
services:
mpd:
image: cuddlyclara/webradio:latest
container_name: webradio
ports:
- 0.0.0.0:8000:8000 # Webradio HTTP Port
- 127.0.0.1:6600:6600 # MPD Control Port (optional)
volumes:
- ./media:/media:ro # Mount your local music directory
restart: unless-stopped
```## Configuration Details
- **Webradio Port (8000)**: Exposes the HTTP web interface to listen to your music.
- **MPD Control Port (6600)**: Exposes the MPD control interface for clients that support it. This port is optional and can be omitted if you don't need MPD control access.
- **Volume Mount**: The `./media` folder is mounted to the container as a read-only (`ro`) volume, containing the music files to be played.
## Customization with Reverse ProxyYou can also configure the webradio to only expose the port on `127.0.0.1` and use a reverse proxy for more advanced setups, such as enabling different paths or adding TLS support.
[Docker Hub](https://hub.docker.com/r/cuddlyclara/webradio)