
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
A Docker Container for synchronizing documents from paperless-ngx to lexoffice.
Paperless-to-Lexoffice automatically transfers documents from your paperless-ngx instance to your lexoffice account. The tool monitors documents with specific tags in paperless-ngx and uploads them to lexoffice as vouchers.
Before using this tool, you need to prepare the following:
To install paperless-to-lexoffice:
If you prefer a simpler setup without separate configuration files, you can use a single docker command:
bashdocker run -d \ --name paperless-to-lexoffice \ --restart unless-stopped \ -v ./data:/data \ -e PL2LO_PAPERLESS_TOKEN="your-paperless-token-here" \ -e PL2LO_PAPERLESS_URL="http://your-paperless-instance:port" \ -e PL2LO_LEXOFFICE_TAG_ID=42 \ -e PL2LO_LEXOFFICE_TOKEN="your-lexoffice-api-token-here" \ asyncura/paperless-to-lexoffice:latest
docker-compose.yml and docker-compose.env files:
bashcurl -O https://raw.githubusercontent.com/asyncura/paperless-to-lexoffice/main/docker/docker-compose.yml curl -O https://raw.githubusercontent.com/asyncura/paperless-to-lexoffice/main/docker/docker-compose.env
docker-compose.env file with your:
docker-compose.yml and docker-compose.env:
bashdocker-compose up -d
Replace the environment variable values with your actual configuration:
your-paperless-token-here: Your paperless-ngx authentication tokenhttp://your-paperless-instance:8000: URL of your paperless-ngx instance42: ID of your lexoffice tag in paperless-ngxyour-lexoffice-api-token-here: Your lexoffice API tokendocker directorydocker-compose.env file with your configurationbashdocker-compose up -d
The application uses a SQLite database to track which documents have been uploaded to lexoffice. By default, this
database is stored inside the container at /data/upload_store.db and will be lost when the container is removed or
recreated.
To make the database persistent:
docker-compose.yml file to add a volume:yamlversion: '3' services: daemon: image: asyncura/paperless-to-lexoffice:latest container_name: paperless-to-lexoffice env_file: - docker-compose.env restart: unless-stopped volumes: - ./data:/data # This will persist the database file
This creates a data directory in the same location as your docker-compose.yml file and mounts it to the /data
directory inside the container, ensuring the database file is preserved across container restarts and updates.
Configure the following environment variables in the docker-compose.env file:
| Variable | Description | Default | Example |
|---|---|---|---|
| PL2LO_POLLING_INTERVAL_S | Polling interval in seconds | 60 | 60 |
| PL2LO_PAPERLESS_TOKEN | Authentication token for paperless-ngx | None - Required | "your-paperless-token-here" |
| PL2LO_PAPERLESS_URL | URL of the paperless-ngx instance | None - Required | "http://192.168.0.5:8000" |
| PL2LO_LEXOFFICE_TAG_ID | ID of the lexoffice tag in paperless-ngx | None - Required | 42 |
| PL2LO_LEXOFFICE_TOKEN | Authentication token for lexoffice | None - Required | "your-lexoffice-api-token-here" |
| PL2LO_LEXOFFICE_URL | URL of the lexoffice API endpoint | "[***]" | "https://api.lexoffice.io/v1/files" |
Example docker-compose.env file:
# Polling interval PL2LO_POLLING_INTERVAL_S=60 # Settings for paperless-ngx PL2LO_PAPERLESS_TOKEN="TOKEN" # Enter your paperless-ngx token here PL2LO_PAPERLESS_URL="http://192.168.0.5:8000" # Change this to your paperless-ngx URL PL2LO_LEXOFFICE_TAG_ID=42 # Change this to your lexoffice Tag ID # Settings for lexoffice # Caution: Only works with lexoffice plans that include the public API unfortunately PL2LO_LEXOFFICE_TOKEN="TOKEN" # Enter your lexoffice API token here PL2LO_LEXOFFICE_URL="https://api.lexoffice.io/v1/files"
PL2LO_LEXOFFICE_TAG_ID)PL2LO_POLLING_INTERVAL_S (default: 60 seconds)This tool is in early development and has primarily been tested with personal document management workflows and currently not suited for production use. Features and functionality may change as development continues. This Project is provided with absolutely no warranty.
Feedback and contributions are very welcome!
Special thanks to the developers of paperless-ngx for creating such an excellent document management system with an accessible API that makes it easy to develop integrations like this one.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务