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: 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

  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

马立杰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值