书签太多难管理?试试这个开源神器Linkding,Docker一键部署

2026-06-21 07:34:25 1点赞 0收藏 0评论

Linkding 是一个开源的书签管理应用,它以其简洁、高效和高度可定制性而著称。它允许用户快速添加、管理和检索书签,同时提供了丰富的功能,如自动元数据抓取、网站快照存档、批量编辑等,以满足不同用户的需求。

性能不错,几万+标签依然很流畅,检索很灵活,支标题、备注、网页正文检索,支持高级语法(日期、未读、标签过滤)

界面简洁美观,支持书签和过滤器(类似分类和文件夹)

支持网页图标和元数据自动获取

功能特点:

  • 自动元数据抓取:自动获取标题、描述、图标、预览图

  • 网页快照存档:自动保存到 Internet Archive,链接失效也能查看

  • 稍后阅读:标记未读,集中处理

  • Markdown 笔记:为书签添加备注与思考

  • 批量操作:批量编辑、删除、打标签

  • 多用户与共享:支持团队协作、书签共享

  • 导入导出:兼容 Netscape HTML 格式,可从浏览器 / 其他工具迁移

  • 浏览器扩展:Chrome、Firefox 插件 + 小书签,一键收藏

  • REST API:可对接其他工具,自定义工作流

  • 数据库默认 SQLite,可切换 PostgreSQL

image-20260318000143419image-20260318000143419

Linkding安装部署

1、创建本地存储路径

方便数据持久化

mkdir -p /opt/linkding /opt/linkding/data #进入数据存储目录 cd /opt/linkding

2、Docker Compose方式创建应用

1)Docker Compose配置文件

services: linkding: container_name: "${LD_CONTAINER_NAME}" image: woohoodai/linkding-cn:latest ports: - "${LD_HOST_PORT:-9090}:9090" volumes: - "${LD_HOST_DATA_DIR:-./data}:/etc/linkding/data" env_file: - .env restart: unless-stopped deploy: resources: limits: memory: 1024m # 限制为使用1GB内存

2).env 配置文件

.env 配置文件,根据官网提供的例子进行修改

.env文件放在/opt/linkding,跟docker compose文件放在一起

# Docker container name LD_CONTAINER_NAME=linkding-cn # Port on the host system that the application should be published on LD_HOST_PORT=9090 # Directory on the host system that should be mounted as data dir into the Docker container LD_HOST_DATA_DIR=./data ​ # Can be used to run linkding under a context path, for example: linkding/ # Must end with a slash `/` LD_CONTEXT_PATH= # Username of the initial superuser to create, leave empty to not create one LD_SUPERUSER_NAME=admin # Password for the initial superuser, leave empty to disable credentials authentication and rely on proxy authentication instead LD_SUPERUSER_PASSWORD=123456 # Option to disable background tasks LD_DISABLE_BACKGROUND_TASKS=False # Option to disable URL validation for bookmarks completely LD_DISABLE_URL_VALIDATION=False # Enables support for authentication proxies such as Authelia LD_ENABLE_AUTH_PROXY=False # Name of the request header that the auth proxy passes to the application to identify the user # See docs/Options.md for more details LD_AUTH_PROXY_USERNAME_HEADER= # The URL that linkding should redirect to after a logout, when using an auth proxy # See docs/Options.md for more details LD_AUTH_PROXY_LOGOUT_URL= # List of trusted origins from which to accept POST requests # See docs/Options.md for more details LD_CSRF_TRUSTED_ORIGINS= ​ # Database settings # These are currently only required for configuring PostreSQL. # By default, linkding uses SQLite for which you don't need to configure anything. ​ # Database engine, can be sqlite (default) or postgres LD_DB_ENGINE=postgres # Database name (default: linkding) LD_DB_DATABASE=linkding # Username to connect to the database server (default: linkding) LD_DB_USER=admin # Password to connect to the database server LD_DB_PASSWORD=123456 # The hostname where the database is hosted (default: localhost) LD_DB_HOST=192.168.50.1 # Port use to connect to the database server # Should use the default port if not set LD_DB_PORT=5433 # Any additional options to pass to the database (default: {}) LD_DB_OPTIONS=

参数说明:

主要修改数据库和容器设置部分,其他可不修改

1、数据库相关配置

数据库支持postgres和sqlite,postgres性能,使用postgres创建linkding

# Database engine, can be sqlite (default) or postgres LD_DB_ENGINE=postgres # Database name (default: linkding) LD_DB_DATABASE=linkding # Username to connect to the database server (default: linkding) LD_DB_USER=admin # Password to connect to the database server LD_DB_PASSWORD=123456 # The hostname where the database is hosted (default: localhost) LD_DB_HOST=192.168.50.1 # Port use to connect to the database server # Should use the default port if not set LD_DB_PORT=5433 # Any additional options to pass to the database (default: {}) LD_DB_OPTIONS=

2、容器相关配置

容器名、容器端口,容器数据存储路径,主目录下data

# Docker container name LD_CONTAINER_NAME=linkding-cn # Port on the host system that the application should be published on LD_HOST_PORT=9090 # Directory on the host system that should be mounted as data dir into the Docker container LD_HOST_DATA_DIR=./data

配置管理员:

LD_SUPERUSER_NAME=admin # Password for the initial superuser, leave empty to disable credentials authentication and rely on proxy authentication instead LD_SUPERUSER_PASSWORD=123456 # Option to disable background tasks

3、Docker 命令启动

docker run --name "${LD_CONTAINER_NAME}" -p "${LD_HOST_PORT:-9090}:9090" -v "${LD_HOST_DATA_DIR:-./data}:/etc/linkding/data" -e $(cat .env) --restart unless-stopped -m 1024m --rm woohoodai/linkding-cn:latest

.env文件参考2-Docker Compose

Linkding使用指南

1、添加书签

点击右上角新增按钮,新增一个书签

image-20260318162819395image-20260318162819395

光标默认聚焦在URL,一般我们只要填入网页地址URL、标签即可

标题、地址描述、图标可以自动获取

image-20260318163412398image-20260318163412398image-20260318163225197image-20260318163225197

笔记支持Markdown语法

2、设置过滤器

类似文件夹或标签集合的概念

将统一类别的标签、搜索词聚集到一起

1)通过过滤器附近的标签,点击管理过滤器

image-20260318162350165image-20260318162350165

2)新增过滤器

可根据搜索词、标签,必选标签、排除标签等多个条件组合

比如

  • 搜索词+排除标签

  • 多个标签

    生活娱乐类过滤器为例,我们可以将电视、电影、音乐、视频、听歌、听书、K歌、跳舞放到一起,作为一个过滤器

image-20260318162500471image-20260318162500471


作者声明本文无利益相关,欢迎值友理性交流,和谐讨论~

展开 收起
0评论

当前文章无评论,是时候发表评论了
提示信息

取消
确认
评论举报

相关文章推荐

更多精彩文章
更多精彩文章
最新文章 热门文章
0
扫一下,分享更方便,购买更轻松