archive
This commit is contained in:
23
koel/build_and_run.sh
Executable file
23
koel/build_and_run.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#! /bin/bash
|
||||
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
mkdir -p ./mnt/{media,config,storage}
|
||||
chmod -R 777 ./mnt
|
||||
|
||||
echo 'The default username for the web ui is "admin@example.com", password is "admin"'
|
||||
echo 'Run `chmod -R 777 /opt/koel/storage` when it starts nginx'
|
||||
|
||||
docker run --rm -it \
|
||||
-p 8050:8050 \
|
||||
-p 8060:8060 \
|
||||
--name=koel \
|
||||
-v $PWD/mnt/media:/media \
|
||||
-e PHP_MEMORY_LIMIT=2048 \
|
||||
-e FASTCGI_READ_TIMEOUT=6000 \
|
||||
-e UMASK=000 \
|
||||
-e PUID=0 \
|
||||
-e PGID=0 \
|
||||
binhex/arch-koel
|
||||
|
||||
#-v $PWD/mnt/storage:/opt/koel/storage \
|
||||
#-v $PWD/mnt/config:/config \
|
||||
3
koel/compose_build_and_run.sh
Executable file
3
koel/compose_build_and_run.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
|
||||
docker-compose up
|
||||
38
koel/docker-compose.yaml
Executable file
38
koel/docker-compose.yaml
Executable file
@@ -0,0 +1,38 @@
|
||||
version: '3.4'
|
||||
|
||||
services:
|
||||
koel:
|
||||
image: 0xcaff/koel
|
||||
depends_on:
|
||||
- database
|
||||
ports:
|
||||
- 8080:80
|
||||
environment:
|
||||
DB_CONNECTION: mysql
|
||||
DB_HOST: database
|
||||
DB_USERNAME: koel
|
||||
DB_PASSWORD: koel
|
||||
DB_DATABASE: koel
|
||||
volumes:
|
||||
- music:/music
|
||||
- covers:/var/www/html/public/img/covers
|
||||
|
||||
database:
|
||||
image: mysql/mysql-server:5.7
|
||||
volumes:
|
||||
- db:/var/lib/mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
MYSQL_DATABASE: koel
|
||||
MYSQL_USER: koel
|
||||
MYSQL_PASSWORD: koel
|
||||
|
||||
volumes:
|
||||
db:
|
||||
driver: local
|
||||
|
||||
music:
|
||||
driver: local
|
||||
|
||||
covers:
|
||||
driver: local
|
||||
2
koel/review
Executable file
2
koel/review
Executable file
@@ -0,0 +1,2 @@
|
||||
FUCK its nice but doesnt save position
|
||||
|
||||
Reference in New Issue
Block a user