Files
spotvinyl/final-loop/compose.yml

35 lines
816 B
YAML

services:
librespot:
container_name: spotvinyl-client
image: giof71/librespot:latest
network_mode: host
devices:
- /dev/snd:/dev/snd
environment:
- DEVICE=hw:x20,0
- BACKEND=alsa
- BITRATE=320
- INITIAL_VOLUME=100
- DEVICE_NAME=spotvinyl
- ENABLE_OAUTH=headless # Enables OAuth headless mode
- ENABLE_SYSTEM_CACHE=Y # Cache token for persistent login
volumes:
- ./client-cache:/data/system-cache
stdin_open: true
tty: true
spotvinyl:
build: .
container_name: spotvinyl
devices:
- /dev/video2
volumes:
- ./src:/app
# - ./spotvinyl-cache
working_dir: /app
env_file:
- .env
command: python3 decode_barcode.py
ports:
- "5000:5000"