snackpot.yml, docker-compose.yml - add mopidy and upmpdcli services

mopidy includes icecast
This commit is contained in:
Nick Stokoe
2021-02-14 17:57:10 +00:00
parent 5625a1d51a
commit 65d69c7f58
6 changed files with 144 additions and 1 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "templates/docker-compose/mopidy"]
path = templates/docker-compose/mopidy
url = git@github.com:Log1x/docker-mopidy-iris.git

View File

@@ -18,9 +18,18 @@
- "80" - "80"
- "443" - "443"
# minidlna # minidlna
- "8200"
# upmpdcli
- port: "49152"
# upnp (minidlna and upmpdcli)
- proto: udp - proto: udp
port: "1900" port: "1900"
- "8200" # mopidy
- "6600"
- "6680"
- "5555"
# icecast
- "8000"
tasks: tasks:
- hostname: - hostname:

View File

@@ -14,6 +14,7 @@ volumes:
redis: redis:
minidlna_state: minidlna_state:
minidlna_data: minidlna_data:
mopidy_data:
networks: networks:
proxy-tier: proxy-tier:
@@ -127,3 +128,88 @@ services:
- MINIDLNA_MEDIA_DIR_1=A,/media/audio - MINIDLNA_MEDIA_DIR_1=A,/media/audio
- MINIDLNA_MEDIA_DIR_2=V,/media/video - MINIDLNA_MEDIA_DIR_2=V,/media/video
- MINIDLNA_FRIENDLY_NAME=Snackpot - MINIDLNA_FRIENDLY_NAME=Snackpot
mopidy:
build: ./mopidy
ports:
- "6600:6600"
- "6680:6680"
- "8000:8000"
volumes:
# Makes mopidy data persistent
- mopidy_data:/data
# Add local music folder
- minidlna_data:/music:ro
restart: unless-stopped
upmpdcli:
build: ./upmpdcli
depends_on:
- mopidy
# Host mode needed for advertisement
network_mode: host
# Next three services adapted from
# https://github.com/deisi/audiostation/blob/master/docker-compose.yml
# and https://github.com/IVData/dockerfiles/blob/master/mopidy-multiroom/docker-compose.yml
# snapserver:
# image: ivdata/snapserver:latest
# # ports:
# # - "1704:1704"
# # - "1705:1705"
# # - "1780:1780"
# volumes:
# # The volume with the sharesound fifo for snapcast to work
# - fifo:/tmp/snapcast
# # command: "snapserver -s pipe:///tmp/sharesound/snapfifo?name=Radio"
# # host mode is needed for snapserver advertisement
# network_mode: host
# restart: unless-stopped
# snapclient:
# image: ivdata/snapclient:latest
# # ports:
# # - "1704:1704"
# # - "1705:1705"
# # - "1780:1780"
# devices:
# - /dev/snd
# volumes:
# # The volume with the sharesound fifo for snapcast to work
# - fifo:/tmp/snapcast
# # command: "snapserver -s pipe:///tmp/sharesound/snapfifo?name=Radio"
# # host mode is needed for snapserver advertisement
# network_mode: host
# restart: unless-stopped
# environment:
# - HOST=127.0.0.1
# mopidy:
# image: ivdata/mopidy:latest
# ports:
# - "6600:6600"
# - "6680:6680"
# - "5555:5555"
# depends_on:
# - snapserver
# volumes:
# # The volume with the fifo for snapcast to work with
# - fifo:/tmp/snapcast
# # Makes mopidy data persistent
# - mopidy_data:/mopidy
# # Add local music folder
# - minidlna_data:/media/music:ro
# restart: unless-stopped
# spotify:
# image: audiostation/spotify:latest
# # host mode is needed for Spotifyd advertisement
# network_mode: host
# depends_on:
# - snapserver
# volumes:
# # The volume with the sharesound fifo for snapcast to work
# - /tmp/sharesound:/tmp/sharesound
# restart: unless-stopped

View File

@@ -0,0 +1,16 @@
FROM alpine:3.13
RUN apk update \
&& apk upgrade \
&& apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
python2 \
upmpdcli
COPY upmpdcli.conf /etc/upmpdcli.conf
#RUN adduser -S upmpdcli
EXPOSE 1900/udp
EXPOSE 49152
ENTRYPOINT ["upmpdcli"]

View File

@@ -0,0 +1,28 @@
# upmpdcli general parameters
#logfilename = /var/log/upmpdcli.log
# loglevel = 0
#pkgdatadir=/usr/share/upmpdcli
#pidfile = /var/run/upmpdcli.pid
# upnp network parameters
#upnpiface =
#upnpip =
# upnpport =
# media renderer parameters
friendlyname = Snackpot
#upnpav = 1
#openhome = 1
#lumincompat = 0
#saveohcredentials = 1
#checkcontentformat = 1
#iconpath = /usr/share/upmpdcli/icon.png
#cachedir = /var/cache/upmpdcli
#presentationhtml = /usr/share/upmpdcli/presentation.html
# mpd parameters
#mpdhost = 127.0.0.1
#mpdport = 6600
#mpdpassword =
#ownqueue = 1