Compose: Laufwerk als devices: statt Bind-Mount, Ausgabe aufs media-Volume
Bind-Mounts unter volumes: geben dem Container den Geräteknoten, aber keine Device-Cgroup-Erlaubnis — jedes open() scheiterte mit EPERM. Totes disc:-Volume raus (kein udevd legt dort je Symlinks an), depends_on wartet jetzt auf healthy, Worker-read_only bis zur Härtung ausgesetzt (MakeMKV braucht HOME). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+22
-14
@@ -1,4 +1,9 @@
|
|||||||
# Docker Compose für Rippy
|
# Docker Compose für Rippy
|
||||||
|
#
|
||||||
|
# Geräte-Zugriff (22.07./23.07.-Lehre): Optische Laufwerke MÜSSEN als devices:
|
||||||
|
# eingebunden werden. Bind-Mounts unter volumes: geben dem Container zwar den
|
||||||
|
# Geräteknoten, aber KEINE Berechtigung im Device-Cgroup → jedes open() scheitert
|
||||||
|
# mit EPERM. Voraussetzung: Die VM sieht das Laufwerk (USB-Passthrough auf pve).
|
||||||
|
|
||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
@@ -23,13 +28,15 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- media:/app/media
|
- media:/app/media
|
||||||
- temp:/app/temp
|
- temp:/app/temp
|
||||||
- /dev/cdrom:/dev/cdrom:ro
|
devices:
|
||||||
- /dev/sr0:/dev/sr0:ro
|
- /dev/sr0:/dev/sr0
|
||||||
networks:
|
networks:
|
||||||
- rippy-net
|
- rippy-net
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
- redis
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
read_only: false
|
read_only: false
|
||||||
|
|
||||||
@@ -40,23 +47,25 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgresql://rippy:rippy@postgres:5432/rippy
|
- DATABASE_URL=postgresql://rippy:rippy@postgres:5432/rippy
|
||||||
- REDIS_URL=redis://redis:6379/0
|
- REDIS_URL=redis://redis:6379/0
|
||||||
- TMDB_API_KEY=${TMDB_API_KEY}
|
- RIP_OUTPUT_DIR=/app/media
|
||||||
- THETVDB_API_KEY=${THETVDB_API_KEY}
|
- MAKEMKV_APP_KEY=${MAKEMKV_APP_KEY}
|
||||||
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
|
|
||||||
- LOG_LEVEL=INFO
|
- LOG_LEVEL=INFO
|
||||||
volumes:
|
volumes:
|
||||||
- media:/app/media
|
- media:/app/media
|
||||||
- temp:/app/temp
|
- temp:/app/temp
|
||||||
- disc:/dev/disc
|
devices:
|
||||||
- /dev/cdrom:/dev/cdrom:ro
|
- /dev/sr0:/dev/sr0
|
||||||
- /dev/sr0:/dev/sr0:ro
|
|
||||||
networks:
|
networks:
|
||||||
- rippy-net
|
- rippy-net
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
- redis
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
read_only: true
|
# read_only bleibt Ziel (Etappe 6), aber MakeMKV/abcde brauchen HOME +
|
||||||
|
# Settings — bis zur Härtung schreibbar, Ausgabe geht ohnehin aufs Volume.
|
||||||
|
read_only: false
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /app/tmp
|
- /app/tmp
|
||||||
- /run
|
- /run
|
||||||
@@ -112,6 +121,5 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
media:
|
media:
|
||||||
temp:
|
temp:
|
||||||
disc:
|
|
||||||
postgres-data:
|
postgres-data:
|
||||||
redis-data:
|
redis-data:
|
||||||
|
|||||||
Reference in New Issue
Block a user