This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/koel/docker-compose.yml

50 lines
1.1 KiB
YAML

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: