Modernized Koel config
parent
0172b193a1
commit
7e4bb004e0
|
@ -12,7 +12,7 @@ DB_HOST=db
|
||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_DATABASE=koel
|
DB_DATABASE=koel
|
||||||
DB_USERNAME=koel
|
DB_USERNAME=koel
|
||||||
DB_PASSWORD=changeme
|
DB_PASSWORD=koel
|
||||||
|
|
||||||
# A random 32-char string. You can leave this empty if use php artisan koel:init.
|
# A random 32-char string. You can leave this empty if use php artisan koel:init.
|
||||||
APP_KEY=
|
APP_KEY=
|
||||||
|
|
|
@ -1,14 +1,22 @@
|
||||||
version: '3.5'
|
version: '2.4'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
# This repository sadly only has a 'latest' flag
|
||||||
image: 'hyzual/koel:latest'
|
image: 'hyzual/koel:latest'
|
||||||
restart: 'always'
|
restart: 'always'
|
||||||
|
|
||||||
|
healthcheck:
|
||||||
|
test: 'curl -f localhost:80 || exit 1'
|
||||||
|
interval: '1m'
|
||||||
|
timeout: '10s'
|
||||||
|
retries: 3
|
||||||
|
start_period: '10s'
|
||||||
depends_on:
|
depends_on:
|
||||||
- 'db'
|
db:
|
||||||
labels:
|
# Haven't found a good MySQL healthcheck yet
|
||||||
- 'com.centurylinklabs.watchtower.enable=true'
|
condition: 'service_started'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- 'default'
|
- 'default'
|
||||||
- 'nginx'
|
- 'nginx'
|
||||||
|
@ -18,17 +26,15 @@ services:
|
||||||
- 'music:/music'
|
- 'music:/music'
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: 'mysql:8'
|
image: 'mysql:8.0.24'
|
||||||
restart: 'always'
|
restart: 'always'
|
||||||
command: '--default-authentication-plugin=mysql_native_password'
|
command: '--default-authentication-plugin=mysql_native_password'
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- 'MYSQL_DATABASE=koel'
|
- 'MYSQL_DATABASE=koel'
|
||||||
- 'MYSQL_PASSWORD=$DB_PASSWORD'
|
- 'MYSQL_USER=koel'
|
||||||
- 'MYSQL_ROOT_PASSWORD=$DB_PASSWORD'
|
- 'MYSQL_PASSWORD=koel'
|
||||||
- 'MYSQL_USER=$DB_USERNAME'
|
- 'MYSQL_RANDOM_ROOT_PASSWORD=yes'
|
||||||
labels:
|
|
||||||
- 'com.centurylinklabs.watchtower.enable=true'
|
|
||||||
volumes:
|
volumes:
|
||||||
- 'db-data:/var/lib/mysql'
|
- 'db-data:/var/lib/mysql'
|
||||||
|
|
||||||
|
|
Reference in New Issue