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

51 lines
1.2 KiB
YAML
Raw Normal View History

2021-04-23 14:38:13 +02:00
version: '2.4'
2021-01-10 14:50:14 +01:00
services:
app:
2021-04-23 14:38:13 +02:00
# This repository sadly only has a 'latest' flag
2021-01-10 14:50:14 +01:00
image: 'hyzual/koel:latest'
restart: 'always'
2021-04-23 14:38:13 +02:00
healthcheck:
test: 'curl -f localhost:80 || exit 1'
interval: '1m'
timeout: '10s'
retries: 3
start_period: '10s'
2021-01-10 14:50:14 +01:00
depends_on:
2021-04-23 14:38:13 +02:00
db:
# Haven't found a good MySQL healthcheck yet
condition: 'service_started'
2021-01-10 14:50:14 +01:00
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'
2021-04-23 21:19:33 +02:00
- 'index:/var/www/html/storage/search-indexes'
2021-01-10 14:50:14 +01:00
db:
2021-04-29 03:01:13 +02:00
image: 'mariadb:10.6.0-focal'
2021-01-10 14:50:14 +01:00
restart: 'always'
command: '--default-authentication-plugin=mysql_native_password'
environment:
- 'MYSQL_DATABASE=koel'
2021-04-23 14:38:13 +02:00
- 'MYSQL_USER=koel'
- 'MYSQL_PASSWORD=koel'
- 'MYSQL_RANDOM_ROOT_PASSWORD=yes'
2021-01-10 14:50:14 +01:00
volumes:
- 'db-data:/var/lib/mysql'
networks:
nginx:
external: true
volumes:
covers:
db-data:
2021-04-23 21:19:33 +02:00
index:
2021-01-10 14:50:14 +01:00
music: