This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-01-10 14:50:14 +01:00
|
|
|
version: '3.5'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: 'hyzual/koel:latest'
|
|
|
|
restart: 'always'
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- 'db'
|
|
|
|
labels:
|
|
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
|
|
|
networks:
|
|
|
|
- 'default'
|
|
|
|
- 'nginx'
|
|
|
|
volumes:
|
2021-01-10 15:16:42 +01:00
|
|
|
- './.env:/var/www/html/.env'
|
2021-01-10 14:50:14 +01:00
|
|
|
- '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'
|
2021-01-10 20:29:43 +01:00
|
|
|
- 'MYSQL_ROOT_PASSWORD=$DB_PASSWORD'
|
2021-01-10 14:50:14 +01:00
|
|
|
- 'MYSQL_USER=$DB_USERNAME'
|
|
|
|
labels:
|
|
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
|
|
|
volumes:
|
|
|
|
- 'db-data:/var/lib/mysql'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
nginx:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
covers:
|
|
|
|
db-data:
|
|
|
|
music:
|