A Docker container for cataloging audiobooks, intended for use on an Unraid server.
LOG_LEVEL
: Optional. Passed to pino. Sanitized: options aretrace
,debug
,info
,warn
,error
. Defaults toinfo
.POLL_PERIOD
: Optional. Number of time in ms between checking for new imports. Defaults to 30,000.
Audiobooks should be mounted at /audiobooks
.
The database will be placed in /db/
or the directory mounted at DB_DIR
.
.audiobooks
will be mounted at /audiobooks
and is gitignored; you can use it to work in a local environment.
This repo adhere's to GitHub's Scripts to Rule Them All pattern.
script/setup
: creates a new Docker image for dev, ignoring cachescript/update
: builds the dev Docker image, using cache if possible. In most cases,script/update
is all you need andscript/setup
is unnecessary.script/migrate
: exposes the Umzug CLI inside the dev container. If no arguments are passed,up
is assumed.script/server
: runsscript/update
and then starts dev server inside generated Docker image. Server will be visible at http://localhost:6541.script/test
: runsscript/update
and runsyarn test
inside it. Extra arguments will be passed as arguments toyarn test
, e.g.script/test -u
to update Jest snapshots.