Git Product home page Git Product logo

docker-music-stack's Introduction

Docker Music Stack

This a ready, set and deploy music stack built under docker.

Applications used in the stack

  • mpd: My favorite music server application
  • icecast: To stream the audio over the world
  • sima: Autoqueue client. Never stop listen!
  • ympd: A minimal Web GUI.
  • More incoming...

MPD + Icecast would be the essential configuration to be prepared to listen music. The other apps are cool add-ons for a beautiful stack

Execution

You have two options to execute all the stack, using docker-compose or launching the containers one-by-one, your choice.

The default access to applications are:

  • mpd: http://localhost:6600 or http://docker_machine_ip:6600
  • icecast streaming: http://localhost:8000/mpd or http://docker_machine_ip:8000/mpd
  • ympd gui: http://localhost:8080 or http://docker_machine_ip:8080

Docker Compose

Clone this repo. Edit docker-compose.yml and add your host volumes for your music, playlists and/or database, then:

docker-compose up -d

Container by container, separatelly

  1. Create a bridge network

    docker network create -d bridge music_stack

  2. Run Icecast

    docker run -p 8000:8000 --net music_stack --name=icecast -d vitiman/alpine-icecast:latest

  3. Run MPD

Use host volumes or create your own volumes for your music, playlists and/or database

docker run -d -p 6600:6600 --net music_stack \ 
    -v your_music_volume:/var/lib/mpd/music \
    -v your_playlists_volume:/var/lib/mpd/playlists \
    -v your_database_volume:/var/lib/mpd/database \
    --name mpd vitiman/alpine-mpd:latest
  1. (Optional) Run sima

    docker run --net music_stack --name=sima -d vitiman/alpine-sima:latest

  2. (Optional) Run ympd

    docker run -p 8080:8080 --net music_stack --name=ympd -d vitiman/alpine-ympd:latest

Passwords, users and credentials

It's strongly recommended to change passwords in icecast.xml and mpd.conf.

The passwords in configuration are setted for development purposes.

Configurations

  • icecast.xml: default configuration for icecast.
  • mpd.conf: basic configuration for mpd, using shoutcast stream
  • sima.conf: basic configuration for sima autoqueuing

Custom build

When you set up your current passwords, you need only to build using docker-compose with the other YAML file docker-compose.yml.custom. Don't forget to set your volumes!

docker-compose -f docker-compose.yml.custom build
docker-compose -f docker-compose.yml.custom up -d

DockerHub repository

TODOs

  • Template version for docker compose
  • Capture sima and ympd SIGTERM signal to stop quickly the container
  • Some permissions inside containers

docker-music-stack's People

Contributors

vitiman avatar

Watchers

James Cloos avatar uneidel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.