Use:
docker run --name ledfx \
--userns keep-id --group-add keep-groups \
-v /path/to/config/ledfx:/config \
-p 8888:8888 -p 4713:4713 \
gerulrich/ledfx:latest
I use this image as follows:
mpd (linux music player daemon)
|--> pulse output --> ledfx
|--> alsa device (hdmi1) --> Denon Receiver
mpd config (/etc/mpd.conf)
# alsa output (HDMI to Denon AV Reciever)
audio_output {
type "alsa"
name "ALSA Denon AVC-S660H"
device "hw:0,0"
mixer_type "hardware"
}
# output to Ledfx pulse
audio_output {
type "pulse"
name "LedFx pulse"
server "localhost"
}
Personally I use podman (rootless) instead of docker as systemd service:
ledfx.service:
[Unit]
Description=ledfx in a container
Documentation=man:podman-generate-systemd(1)
Wants=network-online.target
After=network-online.target
RequiresMountsFor=%t/containers
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n TZ=America/Argentina/Buenos_Aires
Restart=on-failure
TimeoutStopSec=30
ExecStart=/usr/local/bin/podman run --name ledfx \
--cidfile=%t/%n.ctr-id \
--cgroups=no-conmon \
--sdnotify=conmon \
--replace --detach --rm \
--network slirp4netns \
-v /home/german/hassio/ledfx:/config \
-p 8888:8888 -p 4713:4713 \
docker.io/gerulrich/ledfx:latest
ExecStop=/usr/local/bin/podman stop --ignore -t 10 --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/local/bin/podman rm -f --ignore -t 10 --cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all
[Install]
WantedBy=default.target
Content type
Image
Digest
sha256:d72afa3da…
Size
278.9 MB
Last updated
2 days ago
docker pull gerulrich/ledfx