This repo contain the a docker image running calibre server built using debian stable.
Default value: /srv/calibre/library
.
Path to the calibre library path;
Path to a folder that contains book to be impoted before the server start, this action is performed only if the folder exists.
If the folder is empty it is filled by the default calibre library generated by caplibre desktop app.
Default value: empty
Path to a sqlite file containing the user db, it the file is present those options
--userdb $CALIBRE_USERDB_PATH --enable-auth
are added to CALIBRE_OPTIONS
var.
The sqlite file can be generated using the following command
calibre-server --userdb /srv/calibre/users.sqlite --manage-users
Default value: empty
Calibre server listening port.
Default value: 8080
Calibre server listening ip address.
Default value: 0.0.0.0
A prefix to prepend to all URLs. Useful if you wish to run this server behind a re‐verse proxy.
For example use, /calibre as the URL prefix.
Default value: /
Default value: empty
The final command will result in:
/usr/bin/calibre-server \
--port $CALIBRE_PORT \
--listen-on $CALIBRE_IP \
--log /srv/calibre/logs/server.log \
--access-log /srv/calibre/log/access.log \
--url-prefix $CALIBRE_URL_PREFIX \
$CALIBRE_OPTIONS $CALIBRE_LIBRARY_PATH
This is a simple exmaple fot the docker-compose
version: '3'
services:
calibre-server:
build: .
ports:
- "8080:8080"
environment:
CALIBRE_OPTIONS: "--enable-local-write"
CALIBRE_NEW_BOOKS_PATH: "/srv/calibre/new"
CALIBRE_USERDB_PATH: "/srv/calibre/users.sqlite"
volumes:
- /etc/localtime:/etc/localtime:ro # Use host timezone
- /srv/calibre/new/:/srv/calibre/new/
- /srv/calibre/users.sqlite:/srv/calibre/users.sqlite
- /srv/calibre/log:/srv/calibre/log
- calibre-library:/srv/calibre/library/
volumes:
calibre-library: