Skip to content

A Docker container for cataloging audiobooks, intended for use on an Unraid server

License

Notifications You must be signed in to change notification settings

bensaufley/audiobook-catalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audiobook Catalog

A Docker container for cataloging audiobooks, intended for use on an Unraid server.

Environment Variables

  • LOG_LEVEL: Optional. Passed to pino. Sanitized: options are trace, debug, info, warn, error. Defaults to info.

Mount Paths

Audiobooks should be mounted at /audiobooks.

The database will be placed in /db/ or the directory mounted at DB_DIR.

Utilities

Certain command-line utilities are included in the container (located at .build/bin). They will respond to -h/--help for more information:

  • removeTag: For safety, tags can only be deleted through the UI if they are not associated with any audiobooks. This utility can be used to remove one or multiple tags, including those associated with audiobooks (with -f).

Development

.audiobooks will be mounted at /audiobooks and is gitignored; you can use it to work in a local environment.

Scripts

This repo adhere's to GitHub's Scripts to Rule Them All pattern.

  • script/setup: creates a new Docker image for dev, ignoring cache
  • script/update: builds the dev Docker image, using cache if possible. In most cases, script/update is all you need and script/setup is unnecessary.
  • script/migrate: exposes the Umzug CLI inside the dev container. If no arguments are passed, up is assumed.
  • script/server: runs script/update and then starts dev server inside generated Docker image. Server will be visible at http://localhost:6541.
  • script/test: runs script/update and runs npm test inside it. Extra arguments will be passed as arguments to npm test, e.g. script/test -u to update Jest snapshots.

About

A Docker container for cataloging audiobooks, intended for use on an Unraid server

Topics

Resources

License

Stars

Watchers

Forks