Hopefully get sound ALSA on airsonic
This commit is contained in:
parent
a24610ff4e
commit
08caa8086b
|
@ -5,11 +5,21 @@ resource "docker_container" "airsonic" {
|
|||
destroy_grace_seconds = 30
|
||||
must_run = true
|
||||
|
||||
# Unfortunately, the --device flag is not yet supported
|
||||
# in docker/terraform:
|
||||
# https://github.com/terraform-providers/terraform-provider-docker/issues/30
|
||||
|
||||
upload {
|
||||
content = "${data.template_file.airsonic-properties-file.rendered}"
|
||||
file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/airsonic.properties"
|
||||
}
|
||||
|
||||
# This lets the Jukebox use ALSA
|
||||
upload {
|
||||
content = "${file("${path.module}/conf/airsonic.sound.properties")}"
|
||||
file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/sound.properties"
|
||||
}
|
||||
|
||||
volumes {
|
||||
host_path = "/mnt/xwing/config/airsonic/data"
|
||||
container_path = "/config"
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# https://airsonic.github.io/docs/jukebox/
|
||||
javax.sound.sampled.Clip=#PCH [plughw:1,0]
|
||||
javax.sound.sampled.Port=#Port PCH [hw:1]
|
||||
javax.sound.sampled.SourceDataLine=#PCH [plughw:1,0]
|
||||
javax.sound.sampled.TargetDataLine=#PCH [plughw:1,0]
|
Loading…
Reference in New Issue