123456789101112131415161718192021222324252627282930313233343536 |
- version: '2.3'
- volumes:
- cache:
- services:
- librespot:
- build: .
- image: docker.io/fphammerle/librespot
- group_add: [29] # stat --format='%g %n' /dev/snd/*
- command: librespot
- --name librespot-docker-compose-test
- --device-type computer
- --cache /var/cache/librespot
- --backend alsa
- --device surround21:CARD=PCH,DEV=0
- --enable-volume-normalisation
- --volume-ctrl linear
- --initial-volume 25
- --autoplay
- --verbose
- read_only: yes
- volumes:
- - type: volume
- source: cache
- target: /var/cache/librespot # $LIBRESPOT_CACHE_PATH
- devices:
- - /dev/snd
- userns_mode: host
- network_mode: host
- cap_drop: [all]
- security_opt: [no-new-privileges]
- cpus: 0.4
- mem_limit: 32M
- # https://docs.docker.com/compose/compose-file/compose-file-v2/
|