id: ee5f5dd8626449549a8127808d0bb924
parent_id: 
item_type: 1
item_id: cd8882aac74b4e128d0c93605e2de2b6
item_updated_time: 1764345560050
title_diff: "[{\"diffs\":[[1,\"分享：docker部署calibre-web和douban-api，做自己的书库 - 知乎\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":45}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>分享：docker部署calibre-web和douban-api，做自己的书库 - 知乎</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"4368\\\"></a>\\\r\\\n<h1>分享：docker部署calibre-web和douban-api，做自己的书库 - 知乎</h1>\\\r\\\n\\\r\\\n<div>\\\n<span>\\\n  <div style=\\\"--en-clipped-content:simplified; --en-clipped-source-url:https://zhuanlan.zhihu.com/p/465924191; --en-clipped-source-title:分享：docker部署calibre-web和douban-api，做自己的书库 - 知乎;\\\">\\\n<div><br/></div><div style=\\\"min-height: 3309px; font-size: 16px; display: block; min-width: 100%; position: relative;\\\"> <div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;\\\"><div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;font-family:&quot;PT Serif&quot;;font-size:16px;line-height:1.5em;color:rgb(31, 9, 9);text-align:left;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;width:36em;z-index:200;padding-left:2em;padding-right:2em;margin-left:auto;margin-right:auto;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-left:-25px;margin-right:25px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;padding-top:0px;padding-bottom:9em;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><h1 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;border:0px;font:inherit;vertical-align:baseline;font-size:35px;font-weight:normal;line-height:35px;margin-bottom:20px;padding:0px;margin:0px;\\\">分享：docker部署calibre-web和douban-api，做自己的书库</h1><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;height:1em;line-height:1;text-align:center;margin:0px;padding-top:1.5em;padding-bottom:1.5em;margin-bottom:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;opacity:0.5;margin:0px;margin-bottom:0px;\\\"></div></div></div><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;margin-bottom:1em;margin-top:1em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin-bottom:0px;\\\"><img src=\\\":/d17e246de9b04dedb8ca0739b7079b73\\\" type=\\\"image/jpeg\\\" data-filename=\\\"v2-c9eb6429ad5342e18dac422d86a38966_r.jpg\\\" height=\\\"270\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></div><h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">2022-09-21更新：</h3><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">最近家里上了QNAP，重新部署calibre-web时，发现已更新至0.6.19版本，无需再部署douban-api了，具体详见两个docker作者在docker hub上的说明，谢谢两位大佬的持续集成和改善。</p><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">另：使用johngong的docker在获取元数据时经常卡住，如果想只用豆瓣搜索并使用fugary的douban.py的话，记得该文件目录在johngong大佬docker里面对应的目录是：/usr/local/calibre-web/app/cps/metadata_provider；或者使用linuxserver/calibre-web的docker 并参考fugary的最新介绍：</p><h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">前言：</h3><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">曾经电子书网站非常多，想找什么随时网上搜索下载即可，还能mobi，epub各种格式打包全套下载。前几年版权要求严格后，这些网站全都洗白了，找电子书越来越不容易。所以好不容易找到的电子书，就想有个地方保存的同时，也能让不同终端方便访问阅读，虽然家用NAS解决了电子书保存问题，但不能解决任意终端随时访问阅读的问题。后来发现了Calibre-Web这款网页版的电子书阅读软件蛮合适的，各位大佬也逐步将其完功能善成，慢慢做成了开箱即用的软件，在此分享docker hub上johngong大佬的calibre-web，和fugary大佬的simple-boot-douban-api：</p><h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">前置条件：</h3><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">部署有docker环境（QNAP，群辉，linux，各类软路由系统等）</p><h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">安装步骤：</h3><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">直接参考 docker hub上的说明即可：</p><blockquote style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;quotes:none;margin-bottom:1.5em;font-style:italic;border-left:5px solid;margin-left:2em;padding-left:1em;\\\"><a href=\\\"https://link.zhihu.com/?target=https%3A//hub.docker.com/r/fugary/simple-boot-douban-api\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">fugary/simple-boot-douban-api - Docker Image | Docker Hub</a> <br/><a href=\\\"https://link.zhihu.com/?target=https%3A//hub.docker.com/r/johngong/calibre-web\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">johngong/calibre-web - Docker Image | Docker Hub</a></blockquote><h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">部署过程中的注意事项：</h3><ul style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:10px;list-style-type:disc;\\\"><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">先部署douban-api：因为部署完这个容器的ip要填到calibre-web容器的环境变量里。douban-api的作用在于方便获取上传电子书的封面，介绍等内容，让你的电子书网站看起来更漂亮； 这个容器直接默认部署即可，看自己需求要不要添加那唯一的环境变凉。我是群辉上直接默认部署的，使用上没有问题。</li><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">部署douban-api完成后，按docker hub中的说明访问该容器测试是否OK，测试没问题后，接下来部署calibre-web</li><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">calibre-web 不想特别折腾，就是想有个地方放电子书的话，可全部默认部署，不过还是建议按官方建议，做那三个文件夹的映射，同时填好上面的部署好的douban-api地址，如下是我群辉上的calibre-web配置：</li></ul><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;margin-bottom:1em;margin-top:1em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin-bottom:0px;\\\"><img src=\\\":/342ab6b48a5645788f3d95b9703d245c\\\" type=\\\"image/jpeg\\\" data-filename=\\\"v2-547af9c6bb11409bc091a61cb56604ac_r.jpg\\\" height=\\\"334\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></div><ul style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;list-style-type:disc;\\\"><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">容器启动后，直接访问容器的8083端口就可以了，登陆配置你的管理员账号密码</li><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">calibre-web默认的管理员账号密码是 admin/admin123</li></ul><h3 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-size:30px;line-height:35px;margin-top:35px;font-weight:normal;margin-bottom:15px;\\\">部署完成后的一些建议：</h3><ul style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:10px;list-style-type:disc;\\\"><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">calibre-web 官方建议添加字体，电子书其他格式转pdf时，中文不会有乱码，自行网上搜索下载，或者我分享的<a href=\\\"https://link.zhihu.com/?target=https%3A//www.aliyundrive.com/s/tUt4kx8Pu9M\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">阿里云盘</a>。</li><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">calibre-web 建议开启匿名浏览，方便自己和朋友直接访问，同时建议开启书籍上传（只给管理员赋权），这样可以方面网页直接上传书籍，配置路径：管理权限--编辑基本配置--功能配置--启用上传/允许匿名浏览。 官方说这个网页上传不好用，建议用8080端口的cailbre-server上传，在我感受看来，还是可以的，没必要再额外增加一个界面做上传</li></ul><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;margin-bottom:1em;margin-top:1em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin-bottom:0px;\\\"><img src=\\\":/6a0e1fd0de6d48559d698aba8c1a5866\\\" type=\\\"image/jpeg\\\" data-filename=\\\"v2-db6514c16a4aca01cb6155d2053b8036_r.jpg\\\" height=\\\"378\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></div><ul style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;list-style-type:disc;\\\"><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">calibre-web用户赋权：在开启匿名浏览后，会看到一个guest用户，只给他下载书籍和查看书籍的权限即可</li></ul><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;margin-bottom:1em;margin-top:1em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-top:1em;margin-bottom:0px;\\\"><img src=\\\":/966dbfb878c64f56a60f39bc891013a1\\\" type=\\\"image/jpeg\\\" data-filename=\\\"v2-9835f5892845ff704bd4523989c5eaaa_r.jpg\\\" height=\\\"179\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div></div><ul style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;list-style-type:disc;\\\"><li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">Calibre-Web自带OPDS，手机端下载可添加自定义书仓的看书的App（IOS端建议KyBook），然后在家庭配有DDNS的情况下，手机App中添加书仓：<a href=\\\"https://link.zhihu.com/?target=https%3A//xn--eqrt2grvd/\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">https://</a>电子书域名:映射端口/OPDS，例如<a href=\\\"https://link.zhihu.com/?target=https%3A//book.abc.com%3A9999/opds\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">https://book.abc.com:9999/opds</a>，手机App直接连家里书仓，满足移动端随时访问下载阅读。当然手机通过web浏览器也可以直接在线看，但是App有更多的功能（配色等），用起来更舒服。</li></ul></div></div></div></div></div></div></div></div></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":12339}]"
metadata_diff: {"new":{"id":"cd8882aac74b4e128d0c93605e2de2b6","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348837544,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:09.399Z
created_time: 2025-11-28T21:04:09.399Z
type_: 13