mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 05:43:01 +00:00 
			
		
		
		
	Feat: docker support files
This commit is contained in:
		| @@ -24,11 +24,10 @@ WORKDIR / | |||||||
| RUN tar -czvf /mympd.tar.gz -C /myMPD-dist . | RUN tar -czvf /mympd.tar.gz -C /myMPD-dist . | ||||||
|  |  | ||||||
| FROM library/debian:9-slim | 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 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 | RUN apt-get update && apt-get install libssl-dev openssl -y | ||||||
| COPY --from=build /libmpdclient-master.tar.gz / | COPY --from=build /libmpdclient-master.tar.gz / | ||||||
| COPY --from=build /mympd.tar.gz / | COPY --from=build /mympd.tar.gz / | ||||||
|   | |||||||
| @@ -3,8 +3,8 @@ myMPD | |||||||
|  |  | ||||||
| myMPD is a lightweight MPD web client that runs without a dedicated webserver or interpreter.  | 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. | 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. | 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:** | **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) |  - Local playback of mpd http stream (html5 audio api) | ||||||
|  - Progressiv Web App enabled |  - Progressiv Web App enabled | ||||||
|  - Embedded Webserver (mongoose) |  - Embedded Webserver (mongoose) | ||||||
|  |  - Docker support | ||||||
|  |  | ||||||
| myMPD is work in progress. Bugreportes and feature requests are very welcome. | myMPD is work in progress. Bugreportes and feature requests are very welcome. | ||||||
|  - https://github.com/jcorporation/myMPD/issues |  - https://github.com/jcorporation/myMPD/issues | ||||||
|   | |||||||
							
								
								
									
										29
									
								
								contrib/docker/compose
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								contrib/docker/compose
									
									
									
									
									
										Normal file
									
								
							| @@ -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: | ||||||
| @@ -1,11 +1,4 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
|  |  | ||||||
| /postinst | /postinst | ||||||
| sed -i "s#mpdhost = 127.0.0.1#mpdhost = $MYMPD_MPDHOST#g" /etc/mympd/mympd.conf | mympd | ||||||
| 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 |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jcorporation
					jcorporation