2017-04-29 04:18:23 +02:00
|
|
|
cmus
|
|
|
|
====
|
|
|
|
|
|
|
|
[cmus][1] is a small, fast and powerful console music player for Unix-like operating systems.
|
|
|
|
|
|
|
|
|
|
|
|
## docker-compose.yml
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
cmus:
|
|
|
|
image: vimagick/cmus
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
volumes:
|
2017-04-29 06:04:18 +02:00
|
|
|
- ./data:/etc/cmus
|
2017-04-29 04:18:23 +02:00
|
|
|
- ~/music:/root/music
|
|
|
|
devices:
|
|
|
|
- /dev/snd
|
|
|
|
environment:
|
|
|
|
- PASSWORD=secret
|
|
|
|
tty: yes
|
|
|
|
restart: unless-stopped
|
|
|
|
```
|
|
|
|
|
|
|
|
## up and running
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker-compose up -d
|
|
|
|
$ docker-compose exec cmus cmus-remote --help
|
|
|
|
$ docker-compose exec cmus cmus-remote --passwd secret
|
|
|
|
>>> clear
|
|
|
|
>>> add ~/music
|
|
|
|
>>> set continue=true
|
|
|
|
>>> set repeat=true
|
|
|
|
>>> set shuffle=true
|
|
|
|
>>> set resume=true
|
|
|
|
>>> player-play
|
|
|
|
>>> ^D
|
2017-04-29 06:04:18 +02:00
|
|
|
$ alsamixer
|
2017-04-29 04:18:23 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
[1]: https://cmus.github.io/
|