centos+docker搭建Calibre-web个人图书库

文章2021-12-28
centos+docker搭建Calibre-web个人图书库-下一朵云

下载镜像

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: https://wwi.lanzouo.com/irCTwxb621i

注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

版权声明:本文为下一朵云发布文章,转载请附上原文出处链接和本声明。
本文链接:https://www.orcy.net.cn/294.html

​ 广告:HCIE-Security认证课程辅导资料(付费)

4 条评论

  • 头像
    liu
    2021-05-04

    请问豆瓣api失效,如何修改新的api,谢谢

    • 头像
      pony
      2021-05-19

      豆瓣已经不再提供api了吧?

  • 头像
    docker
    2019-12-14

    运行中的容器更新自启动方式,开机自启 docker update –restart unless-stopped [容器名或ID]

    • 头像
      pony
      2019-12-18

      unless-stopped – 不管退出状态码是什么始终重启容器,不过当daemon启动时,如果容器之前已经为停止状态,不要尝试启动它。

发表评论

电子邮件地址不会被公开。 必填项已用*标注