Koel
version: '3.3'
services:
koel:
image: hyzual/koel
depends_on:
- database
ports:
- 7852:80
environment:
- DB_CONNECTION=mysql
- DB_HOST=database
- DB_USERNAME=koel
- DB_PASSWORD=01664892ganjah12
- DB_DATABASE=koel
volumes:
- /srv/path/Files/Koel/music:/music
- /srv/path/Files/Koel/covers:/var/www/html/public/img/covers
- /srv/path/Files/Koel/search_index:/var/www/html/storage/search-indexes
database:
image: mysql/mysql-server:5.7
volumes:
- /srv/path/Files/Koel/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxxxxx
- MYSQL_DATABASE=koel
- MYSQL_USER=koel
- MYSQL_PASSWORD=xxxxxx
volumes:
db:
driver: local
music:
driver: local
covers:
driver: local
search_index:
driver: local
Then :
docker exec -it koel_koel_1 bash
# Once inside the container, you can run commands:
php artisan koel:init --no-assets
Log in with email admin@koel.dev and password KoelIsCool
Whenever the music in /music changes, you will need to manually scan it before koel is able to play it. Run the following command:
docker exec koel_koel_1 php artisan koel:sync
No Comments