Sign inSign up

alexphillips/koel

By alexphillips

Updated over 6 years ago

A docker container for the koel music streaming server

Image
1

7.1K

alexphillips/koel repository overview

linuxserver.io

Contact information

TypeAddress/Details
ForumLinuserver.io forum
IRCfreenode at #linuxserver.io more information at IRC
PodcastCovers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation! Linuxserver.io Podcast

The LinuxServer.io team brings you another image release featuring easy user mapping and based on alpine linux with s6 overlay.

alexphillips/koel

Koel (also stylized as koel, with a lowercase k) is a simple web-based personal audio streaming service written in Vue on the client side and Laravel on the server side. Targeting web developers, Koel embraces some of the more modern web technologies – flexbox, audio, and drag-and-drop API to name a few – to do its job.

 

Usage

docker create \
  --name=koel \
  -v <path to data>:/config \
  -e PGID=<gid> -e PUID=<uid>  \
  -e DB_CONNECTION=<DB_CONNECTION> \
  -e DB_HOST=<DB_HOST> \
  -e DB_DATABASE=<DB_DATABASE> \
  -e DB_USERNAME=<DB_USERNAME> \
  -e DB_PASSWORD=<DB_PASSWORD> \
  -e ADMIN_EMAIL=<ADMIN_EMAIL> \
  -e ADMIN_NAME=<ADMIN_NAME> \
  -e ADMIN_PASSWORD=<ADMIN_PASSWORD> \
  -p 8000:80 \
  alexphillips/koel

 

Parameters

The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side. For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container. So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.

ParameterFunction
-p 1234the port(s)
-v /configKoel config
-e PGIDfor GroupID, see below for explanation
-e PUIDfor UserID, see below for explanation
-e DB_CONNECTIONDatabase connection type (i.e., mysql)
-e DB_HOSTDatabase hostname or IP
-e DB_DATABASEDatabase
-e DB_USERNAMEDatabase username
-e DB_PASSWORDDatabase password
-e ADMIN_EMAILAdmin email
-e ADMIN_NAMEAdmin name
-e ADMIN_PASSWORDInitial admin password

 

User / Group Identifiers

Sometimes when using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and it will "just work" ™.

In this instance PUID=1001 and PGID=1001, to find yours use id user as below:

  $ id <dockeruser>
    uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)

 

Setting up the application

Access the WebUI at :80. For more information, check out Koel.

 

Container access and information.

FunctionCommand
Shell access (live container)docker exec -it alexphillips/koel /bin/sh
Realtime container logsdocker logs -f alexphillips/koel
Container version numberdocker inspect -f '{{ index .Config.Labels "build_version" }}' alexphillips/koel
Image version numberdocker inspect -f '{{ index .Config.Labels "build_version" }}' alexphillips/koel

 

Versions

DateChanges
15.11.17Initial Release.

Tag summary

Content type

Image

Digest

Size

247.5 MB

Last updated

over 6 years ago

docker pull alexphillips/koel