Added koel config

pull/3/head
Jef Roosens 2021-01-10 14:50:14 +01:00
parent f95e9f4154
commit 6849358f51
3 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# Database Settings
DB_USERNAME=koel
DB_PASSWORD=changeme
DB_ROOT_PASSWORD=changeme

15
koel/README.md 100644
View File

@ -0,0 +1,15 @@
# Koel
[Koel](https://github.com/koel/koel) is a self-hostable music server.
# Initial setup
After launching the application for the first time, you have to run the initial
setup. This can be done using the following command:
```
docker exec -it koel_app_1 php artisan koel:init
```
This will ask you to configure the admin user etc. The location for the music
can be left as the default (`/music`). The command will error out after asking
this; this is normal. Even though an error occurred, the system still
initialized successfully.

View File

@ -0,0 +1,49 @@
version: '3.5'
services:
app:
image: 'hyzual/koel:latest'
restart: 'always'
depends_on:
- 'db'
environment:
- 'DB_CONNECTION=mysql'
- 'DB_DATABASE=koel'
- 'DB_HOST=db'
- 'DB_PASSWORD'
- 'DB_USERNAME'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
networks:
- 'default'
- 'nginx'
volumes:
- 'config:/var/www/html'
- 'covers:/var/www/html/public/img/covers'
- 'music:/music'
db:
image: 'mysql:8'
restart: 'always'
command: '--default-authentication-plugin=mysql_native_password'
environment:
- 'MYSQL_DATABASE=koel'
- 'MYSQL_PASSWORD=$DB_PASSWORD'
- 'MYSQL_ROOT_PASSWORD=$DB_ROOT_PASSWORD'
- 'MYSQL_USER=$DB_USERNAME'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
volumes:
- 'db-data:/var/lib/mysql'
networks:
nginx:
external: true
volumes:
config:
covers:
db-data:
music: