diff --git a/Dockerfile b/Dockerfile index 8ebfad8..b94ee37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,11 +24,10 @@ WORKDIR / RUN tar -czvf /mympd.tar.gz -C /myMPD-dist . FROM library/debian:9-slim -ENV MYMPD_COVERIMAGENAME=folder.jpg -ENV MYMPD_MPDHOST=127.0.0.1 -ENV MYMPD_MPDPORT=6600 -ENV MYMPD_SSL=true ENV MYMPD_LOGLEVEL=1 +ENV MPD_MPDHOST=127.0.0.1 +ENV MPD_MPDPORT=6600 +ENV WEBSERVER_SSL=true RUN apt-get update && apt-get install libssl-dev openssl -y COPY --from=build /libmpdclient-master.tar.gz / COPY --from=build /mympd.tar.gz / diff --git a/README.md b/README.md index b104653..6863c64 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ myMPD myMPD is a lightweight MPD web client that runs without a dedicated webserver or interpreter. It's tuned for minimal resource usage and requires only very litte dependencies. -myMPD is a fork of ympd (https://github.com/notandy/ympd). +myMPD is a fork of ympd (https://github.com/notandy/ympd). This fork provides a reworked ui based on Bootstrap 4, a modernized backend and many new features while having the same small footprint as ympd. **Design principles:** @@ -30,6 +30,7 @@ This fork provides a reworked ui based on Bootstrap 4, a modernized backend and - Local playback of mpd http stream (html5 audio api) - Progressiv Web App enabled - Embedded Webserver (mongoose) + - Docker support myMPD is work in progress. Bugreportes and feature requests are very welcome. - https://github.com/jcorporation/myMPD/issues diff --git a/contrib/docker/compose b/contrib/docker/compose new file mode 100644 index 0000000..edde227 --- /dev/null +++ b/contrib/docker/compose @@ -0,0 +1,29 @@ +version: '3' + +services: + mympd: + container_name: mympd +# environment: +# MPD_MPDHOST: 192.168.1.1 +# MPD_MPDPORT: 6600 +# WEBSERVER_SSL: true +# MYMPD_LOGLEVEL: 2 +# image: mympd:latest + build: $MYMPD_BUILD_PATH + networks: + - mympd + ports: + - "40000:80" + - "40001:443" + restart: always + volumes: + - /path/to/music/:/usr/share/mympd/htdocs/library/:ro + - mympd:/etc/mympd/ + +networks: + + mympd: + +volumes: + + mympd: diff --git a/contrib/docker/init.sh b/contrib/docker/init.sh index e4b3e63..4f4d9a7 100644 --- a/contrib/docker/init.sh +++ b/contrib/docker/init.sh @@ -1,11 +1,4 @@ #!/bin/sh /postinst -sed -i "s#mpdhost = 127.0.0.1#mpdhost = $MYMPD_MPDHOST#g" /etc/mympd/mympd.conf -sed -i "s#mpdport = 6600#mpdport = $MYMPD_MPDPORT#g" /etc/mympd/mympd.conf -sed -i "s#ssl = true#ssl = $MYMPD_SSL#g" /etc/mympd/mympd.conf -sed -i "s#coverimagename = folder.jpg#coverimagename = $MYMPD_COVERIMAGENAME#g" /etc/mympd/mympd.conf -sed -i "s#loglevel = 1#loglevel = $MYMPD_LOGLEVEL#g" /etc/mympd/mympd.conf -mympd /etc/mympd/mympd.conf - - +mympd