This is the Dockerfile setup for headphones.
To build the image locally:
git clone https://github.com/blackbarn/docker-headphones.git;
cd docker-headphones;
docker build -t headphones .
docker run -d -v /your_data_location:/data -v /your_music_dir:/volumes/music -v /any_other:/volumes/other -p "8181:8181" --name headphones headphones
Or you can replace headphones with blackbarn/headphones in your run command to use the pre-built image from docker hub.
docker run -d -v /your_data_location:/data -v /your_music_dir:/volumes/music -v /any_other:/volumes/other -p "8181:8181" --name headphones blackbarn/headphones
Change the port mapping to suit your needs. Also, aside from the :/data volume, mount any other directories you may need to reference via headphones config. Such as music download directory or torrent directories.
Just remember, within headphones settings you refer to them by their locally mounted path, such as /volumes/music.
An example of a docker-compose.yml file:
web:
build: .
container_name: headphones
ports:
- "8181:8181"
volumes:
- /opt/data/headphones/data:/data
- /media:/media
external_links:
- nzbget:nzbget-docker
restart: always
Obviously your volume mapping will vary. The external_links is essentially defining a --link to another container, in this case nzbget. This way you can reference it by name within the container.
Content type
Image
Digest
sha256:379520972…
Size
120.5 MB
Last updated
about 11 years ago
docker pull blackbarn/headphones