下载镜像

docker pull linuxserver/calibre-web

创建容器

docker create \
   --name=calibre-web \
   -e PUID=1000 \
   -e PGID=1000 \
   -e TZ=Europe/London \
   -p 8088:8083 \
   -e DOCKER_MODS=linuxserver/calibre-web:calibre \
   -v /data/calibre/data:/config \
   -v /data/calibre/library:/books \
   --restart unless-stopped \
   linuxserver/calibre-web

运行容器

docker start calibre-web

防火墙放开端口

firewall-cmd --zone=public --add-port=8088/tcp --permanent

停止&删除容器

docker stop calibre-web && docker rm calibre-web

注1:如果提示DB位置无效或者DB位置错误请拷贝【metadata.db】文件到host的data文件夹

metadata.db文件下载地址:
metadata.db.zip: http://u1.share.orcy.net.cn/file/12559096-413399668

注2:请给host主机calibre文件夹777权限,否则会出现安装失败或者无法上传书籍

注3:调整语言请点击网页左上角的【用户】,在用户配置页面调整语言

官方说明

docker create \
   --name=calibre-web \
   -e PUID=1000 \
   -e PGID=1000 \
   -e TZ=Europe/London \
   -e DOCKER_MODS=linuxserver/calibre-web:calibre \
   -p 8083:8083 \
   -v path to data:/config \
   -v path to calibre library:/books \
   --restart unless-stopped \
   linuxserver/calibre-web

官方说明

Application Setup
Webui can be found at http://your-ip:8083

On the initial setup screen, enter /books as your calibre library location.

Default admin login: Username: admin Password: admin123

Unrar is included by default and needs to be set in the Calibre-Web admin page (Basic Configuration:External Binaries) with a path of /usr/bin/unrar

x86-64 only We have implemented the optional ability to pull in the dependencies to enable ebook conversion utilising Calibre, this means if you don’t require this feature the container isn’t uneccessarily bloated but should you require it, it is easily available. This optional layer will be rebuilt automatically on our CI pipeline upon new Calibre releases so you can stay up to date. To use this option add the optional environmental variable as detailed above to pull an addition docker layer to enable ebook conversion and then in the Calibre-Web admin page (Basic Configuration:External Binaries) set the path to converter tool to /usr/bin/ebook-convert

To reverse proxy with our Letsencrypt docker container we include a preconfigured reverse proxy config, for other instances of Nginx use the following location block:

    location /calibre-web {
            proxy_pass              http://your-ip:8083;
            proxy_set_header        Host            $http_host;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header        X-Scheme        $scheme;
            proxy_set_header        X-Script-Name   /calibre-web;
    }

官方说明

转换工具路径

/usr/bin/ebook-convert

Unrar二进制位置

/usr/bin/unrar

原文地址:http://www.orcy.net.cn/294.html

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐