A docker image with only the bare essentials needed to run koel. It includes apache and a php runtime with required extensions.
First start the koel server with a mysql database and music storage volume.
docker run --name koel -p 80:80 -it 0xcaff/koel
On the first run, if the .env
file isn't created, it will be created and the
APP_KEY
variable will be populated.
docker-compose can be used to start koel along with its depdencies. Just run.
docker-compose up
On the first start (after an upgrade or initial installation), the database
needs to be migrated. Run koel init with docker exec
in the koel runtime
container:
docker exec -it dockerkoel_koel_1 php artisan koel:init
Check out the ./docker-compose.yml
file for more information.