Skip to content

Instantly share code, notes, and snippets.

@dstecholution
Last active May 20, 2022 22:42
Show Gist options
  • Save dstecholution/7b750e75991b7add07779239ceba3ae1 to your computer and use it in GitHub Desktop.
Save dstecholution/7b750e75991b7add07779239ceba3ae1 to your computer and use it in GitHub Desktop.
transcoder
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "mopidy.fullname" . }}
labels:
app: {{ template "mopidy.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
data:
mopidy.conf: |-
[audio]
output = lamemp3enc ! shout2send async=false mount=${ICECAST_MOUNTPOINT} ip=${ICECAST_SERVER} port=${ICECAST_PORT} password=${ICECAST_TOKEN}
[file]
enabled = true
media_dirs = /var/lib/mopidy/media
show_dotfiles = false
[http]
enabled = true
hostname = 0.0.0.0
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname
[autoplay]
enabled = true
tracklist.uris = auto
tracklist.index = auto
# Tracklist options (on|off|true|false)
tracklist.consume = auto
tracklist.random = true
tracklist.repeat = true
FROM wernight/mopidy:latest
ADD https://file-examples.com/wp-content/uploads/2017/11/file_example_MP3_2MG.mp3 /var/lib/mopidy/media
COPY mopidy.conf /config/mopidy.conf
RUN python3 -m pip install Mopidy-Autoplay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment