Initial implementation of remote library system

This commit is contained in:
patben8 committed 2026-10-04 17:13:24 +02:00
1 parent e8a53eee07
commit e5fb0f0dbb
65 files changed
+6000 -183

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
# The Konduktor server: one library (Traktor or Rekordbox), held where its audio
# lives, opened from the desktop app as a "Remote" library.
#
# Build from the REPOSITORY ROOT (the version is read from frontend/package.json):
# docker build -f server/Dockerfile -t konduktor-server .
#
# Configuration is the environment — see server/.env.example.
FROM python:3.12-slim AS build
RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
COPY backend/requirements-server.txt /tmp/requirements-server.txt
RUN pip install --no-cache-dir --prefix=/install -r /tmp/requirements-server.txt
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
KONDUKTOR_DATA_DIR=/data \
KONDUKTOR_PORT=8765
COPY --from=build /install /usr/local
# `konduktor/__init__.py` reads the app version from <repo>/frontend/package.json,
# two levels above the package.
COPY frontend/package.json /app/frontend/package.json
COPY backend/konduktor /app/backend/konduktor
WORKDIR /app/backend
# History, export sets and the stems ledger.
VOLUME ["/data"]
EXPOSE 8765
CMD ["python", "-m", "konduktor.server"]
+18
View File
@@ -0,0 +1,18 @@
# Konduktor server — e.g. as a TrueNAS SCALE custom app (Apps → Discover Apps →
# ⋮ → Install via YAML), or `docker compose up -d` anywhere with Docker.
#
# Mount your datasets on the left-hand side; the right-hand paths are what
# .env refers to.
services:
konduktor:
image: ghcr.io/mrpatben8/konduktor-server:latest
env_file: .env
ports:
- "8765:8765"
volumes:
- /mnt/tank/music:/music # the audio (KONDUKTOR_CONTENT)
- /mnt/tank/konduktor/library:/library # collection.nml / master.db
- /mnt/tank/konduktor/data:/data # history, export sets, ledger
# TrueNAS's "apps" user, so files written on the datasets keep its ownership.
user: "568:568"
restart: unless-stopped