A super small alpine based docker container that provides the Cherrymusic media server
1.1K
docker create --name cherrymusic-data -v /home/cm/.config/cherrymusic -v /home/cm/.¬local/share/cherrymusic klingtdotnet/cherrymusic
docker run --rm --volumes-from cherrymusic-data -it klingtdotnet/cherrymusic
docker run --rm --volumes-from cherrymusic-data -it klingtdotnet/vim vim /home/cm/.¬config/cherrymusic/cherrymusic.conf
docker run --rm --volumes-from cherrymusic-data --volume /path/to/local/music:/home/cm/basedir/:ro -it klingtdotnet/vim vim /home/cm/.¬config/cherrymusic/cherrymusic.conf
[email protected] file to /etc/systemd/system and run systemctl daemon-reloadcherrymusic and copy it to /etc/sysconfigsystemctl start cherrymusic@someuser or enable it (start automatically on boot) systemctl enable cherrymusic@someuseropenssl req -x509 -newkey rsa:4096 -keyout music.klingt.net.pem -out music.klingt.net.crt -days 360erver {
listen 80;
listen [::]:80;
server_name music.some.domain;
return 301 https://music.some.domain$request_uri;
}
server {
listen 443 ssl spdy;
listen [::]:443 ssl spdy;
server_name music.some.domain;
ssl_certificate /etc/nginx/certs/_.some.domain/_.some.domain.pem;
ssl_certificate_key /etc/nginx/certs/_.some.domain/_.some.domain.key;
ssl_password_file /etc/nginx/certs/_.some.domain/.pass;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
location / {
proxy_http_version 1.1;
# Set proxy headers for the passthrough
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Let the Set-Cookie header through.
proxy_pass_header Set-Cookie;
proxy_pass http://localhost:8765/;
}
}
restorecon -v -R /path/to/certs/
502 Bad Gateway -> add port to allowed http portssemanage port -a -t http_port_t -p tcp 20800
# check
semanage port -l | grep 20800
semanage takes a lot of resources (I would like to know why), maybe you have to setup a swapfile for systems with less than 512MB of RAM. Otherwise it will stop with a KILLED messageContent type
Image
Digest
sha256:f6c9e2b16…
Size
38.1 MB
Last updated
about 10 years ago
docker pull klingtdotnet/cherrymusic