Docker – koel
Docker - koel
——————
version: '3'
services:
koel:
image: phanan/koel
depends_on:
- database
ports:
- 3006:80
environment:
- FORCE_HTTPS=true
- DB_CONNECTION=mysql
- DB_HOST=database
- DB_USERNAME=koel
- DB_PASSWORD=xxxxxxxxx
- DB_DATABASE=koel
volumes:
- /opt/music:/music
- /opt/music/covers:/var/www/html/public/img/covers
- /root/search_index:/var/www/html/storage/search-indexes
restart: always
database:
image: mysql/mysql-server:5.7
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxxxxxxx
- MYSQL_DATABASE=koel
- MYSQL_USER=koel
- MYSQL_PASSWORD=xxxxxx
restart: always
volumes:
db:
driver: local
music:
driver: local
covers:
driver: local
search_index:
driver: local
——————
docker-compose up -d
docker exec -it root_koel_1 /bin/bash
php artisan koel:init --no-assets
php artisan koel:admin:change-password
- 一键测试脚本bench.sh
- 一键DD纯净系统脚本 CentOS/Debian/Ubuntu