This is a rewrite of CherryMusic based on django.
You can test it at: http://music.openrock.mooo.com/
- User:
test
- Password:
1234
Configure config.yml
with your music directories:
- One path:
web:
volumes:
- /home/user/My Music:/usr/src/app/music:ro
- Multiple paths:
web:
volumes:
- /home/user/Classic Music:/usr/src/app/music/Classic:ro
- /home/user/Punk Music:/usr/src/app/music/Punk:ro
Install dependencies:
- docker
- docker-compose>=1.5.0
Create containers:
docker-compose build
docker-compose up -d
Initialice database:
docker-compose run --rm web python3 manage.py migrate auth
docker-compose run --rm web python3 manage.py migrate
Default admin user: admin/admin
docker-compose stop
docker-compose rm
And then reinstall.
docker-compose stop
docker-compose rm web
docker-compose build
docker-compose up -d
To install and run development containers:
docker-compose stop
docker-compose -f development.yml build
docker-compose -f development.yml up -d
Install bower components:
docker-compose -f development.yml run --rm web_dev python3 manage.py bower_install -- --allow-root
In development mode:
In ./web
:
docker-compose -f development.yml run --rm web_dev python3 manage.py collectstatic
To install test containers:
docker-compose stop
docker-compose -f test.yml build
Test server:
docker-compose -f test.yml run --rm web_test /usr/src/test.sh && \
docker-compose -f test.yml stop