travail d'un we (j'en ai big marre)

This commit is contained in:
2025-11-23 23:39:43 +01:00
parent 1ff888cf34
commit 4c486199ed
69 changed files with 208 additions and 111 deletions

34
final-loop/compose.yml Normal file
View File

@@ -0,0 +1,34 @@
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"