Application running on a Raspberry Pi to play Internet radio on a Bluetooth speaker
2.0K
Prerequisites
Before using this container, ensure that your Raspberry Pi meets the following prerequisites:
Running the Docker Container
There are two ways to run the container:
Option 1: Using docker run
Use the following command to run the container with the required environment variables and devices:
docker run --env-file .env --device /dev/rfkill --device /dev/bluetooth --privileged --network host jayabs/pi-bt-radio play
Explanation of the flags:
Option 2: Using docker compose
Alternatively, you can use Docker Compose to manage the container. First, create a docker-compose.yml file in your project directory.
services:
radio-player:
image: jayabs/pi-bt-radio
env_file:
- .env
devices:
- "/dev/rfkill:/dev/rfkill"
- "/dev/bluetooth:/dev/bluetooth"
privileged: true
network_mode: host
command: "play"
Content type
Image
Digest
sha256:754436322…
Size
404.1 MB
Last updated
over 1 year ago
docker pull jayabs/pi-bt-radio