下载Docspell源码
git clone https://github.com/eikek/docspell.git
安装tree
yum install tree -y
查看docspell源码目录
tree -L 1./docspell
├── bt-mysql-install.log
├── bt-pure-ftpd.log
├── core.24780
├── data
├── docspell
├── :\367E
├── halo
├── home
├── igbinary.sh
├── mysql.sh
├── node-v18.20.1-linux-x64
├── node-v18.20.1-linux-x64.tar.xz
├── nohup.out
├── off_install.sh
├── package.xml
├── pandora-next
├── php.ini
├── phpmyadmin.sh
├── pingguoCMS
├── w\376
├── ward-1.8.8.jar
├── web_pdf
└── \246\320\241\371a\213O
8 directories, 15 files
cd docspell/docker/docker-compose/
cat docker-compose.yml
version: ‘3.8’
services:
# The restserver and joex containers defined here are configured
# using env variables. Both must connect to the same database and
# solr instance. More information on configuring can be found here:
# https://docspell.org/docs/configure
#
# Please replace the values of the following with a custom secret
# string:
#
# – DOCSPELL_SERVER_ADMIN__ENDPOINT_SECRET
# – DOCSPELL_SERVER_AUTH_SERVER__SECRET
# – DOCSPELL_SERVER_INTEGRATION__ENDPOINT_HTTP__HEADER_HEADER__VALUE
# (use the same value at the consumedir container!)
#
# After creating an account, you may want to set signup mode to
# “closed” or to “invite”. When using invite, you must also set
# DOCSPELL_SERVER_BACKEND_SIGNUP_NEW__INVITE__PASSWORD to some
# secret.
restserver:
image: docspell/restserver:latest
container_name: docspell-restserver
restart: unless-stopped
ports:
– “7880:7880”
environment:
– TZ=Europe/Berlin
– DOCSPELL_SERVER_INTERNAL__URL=http://docspell-restserver:7880
– DOCSPELL_SERVER_ADMIN__ENDPOINT_SECRET=admin123
– DOCSPELL_SERVER_AUTH_SERVER__SECRET=
– DOCSPELL_SERVER_BACKEND_JDBC_PASSWORD=dbpass
– DOCSPELL_SERVER_BACKEND_JDBC_URL=jdbc:postgresql://db:5432/dbname
– DOCSPELL_SERVER_BACKEND_JDBC_USER=dbuser
– DOCSPELL_SERVER_BIND_ADDRESS=0.0.0.0
– DOCSPELL_SERVER_FULL__TEXT__SEARCH_ENABLED=true
– DOCSPELL_SERVER_FULL__TEXT__SEARCH_SOLR_URL=http://docspell-solr:8983/solr/docspell
– DOCSPELL_SERVER_INTEGRATION__ENDPOINT_ENABLED=true
– DOCSPELL_SERVER_INTEGRATION__ENDPOINT_HTTP__HEADER_ENABLED=true
– DOCSPELL_SERVER_INTEGRATION__ENDPOINT_HTTP__HEADER_HEADER__VALUE=integration-password123
– DOCSPELL_SERVER_BACKEND_SIGNUP_MODE=open
– DOCSPELL_SERVER_BACKEND_SIGNUP_NEW__INVITE__PASSWORD=
– DOCSPELL_SERVER_BACKEND_ADDONS_ENABLED=false
depends_on:
– solr
– db
joex:
image: docspell/joex:latest
container_name: docspell-joex
## For more memory add corresponding arguments, like below. Also see
## https://docspell.org/docs/configure/#jvm-options
# command:
# – -J-Xmx3G
restart: unless-stopped
environment:
– TZ=Europe/Berlin
– DOCSPELL_JOEX_APP__ID=joex1
– DOCSPELL_JOEX_PERIODIC__SCHEDULER_NAME=joex1
– DOCSPELL_JOEX_SCHEDULER_NAME=joex1
– DOCSPELL_JOEX_BASE__URL=http://docspell-joex:7878
– DOCSPELL_JOEX_BIND_ADDRESS=0.0.0.0
– DOCSPELL_JOEX_FULL__TEXT__SEARCH_ENABLED=true
– DOCSPELL_JOEX_FULL__TEXT__SEARCH_SOLR_URL=http://docspell-solr:8983/solr/docspell
– DOCSPELL_JOEX_JDBC_PASSWORD=dbpass
– DOCSPELL_JOEX_JDBC_URL=jdbc:postgresql://db:5432/dbname
– DOCSPELL_JOEX_JDBC_USER=dbuser
– DOCSPELL_JOEX_ADDONS_EXECUTOR__CONFIG_RUNNER=docker,trivial
– DOCSPELL_JOEX_CONVERT_HTML__CONVERTER=weasyprint
ports:
– “7878:7878”
depends_on:
– solr
– db
## Uncomment when using the “docker” runner with addons
# volumes:
# – /var/run/docker.sock:/var/run/docker.sock
# – /tmp:/tmp
# The consumedir container watches a directory for files to upload
# to docspell restserver. This uses the `dsc` tool. For information
# on the available options, see `dsc –help`.
# https://github.com/docspell/dsc
#
# The value after `Docspell-Integration` must match the secret
# specified at the restserver via
# DOCSPELL_SERVER_INTEGRATION__ENDPOINT_HTTP__HEADER_HEADER__VALUE.
#
# The –not-matches “**/.*” option is to exclude hidden files.
consumedir:
image: docspell/dsc:latest
container_name: docspell-consumedir
command:
– dsc
– “-d”
– “http://docspell-restserver:7880”
– “watch”
– “–delete”
– “-ir”
– “–not-matches”
– “**/.*”
– “–header”
– “Docspell-Integration:integration-password123”
– “/opt/docs”
restart: unless-stopped
volumes:
– ./docs:/opt/docs
depends_on:
– restserver
db:
image: postgres:16.2
container_name: postgres_db
restart: unless-stopped
volumes:
– docspell-postgres_data:/var/lib/postgresql/data/
environment:
– POSTGRES_USER=dbuser
– POSTGRES_PASSWORD=dbpass
– POSTGRES_DB=dbname
solr:
image: solr:9
container_name: docspell-solr
restart: unless-stopped
volumes:
– docspell-solr_data:/var/solr
command:
– bash
– -c
– ‘precreate-core docspell; exec solr -f -Dsolr.modules=analysis-extras’
healthcheck:
test: [“CMD”, “curl”, “-f”, “http://localhost:8983/solr/docspell/admin/ping”%5D
interval: 1m
timeout: 10s
retries: 2
start_period: 30s
volumes:
docspell-postgres_data:
docspell-solr_data:
拉取Docspell相关镜像
docker compose pull
使用docker-compose.yml部署文件创建Docspell相关容器。
docker ps
docker logs docspell-restserver
访问ip:7880
感谢您的来访,获取更多精彩文章请收藏本站。
1. 资源都是经过站长或作者收集测试修改后发布分享。转载请在文内以超链形式注明出处,谢谢合作!
2. 本站除原创内容,其余所有内容均收集自互联网,仅限用于学习和研究目的,本站不对其内容的合法性承担任何责任。如有版权内容,请通知我们或作者删除,其版权均归原作者所有,本站虽力求保存原有版权信息,但因众多资源经多次转载,已无法确定其真实来源,或已将原有信息丢失,所以敬请原作者谅解!
3. 本站用户所发布的一切资源内容不代表本站立场,并不代表本站赞同其观点和对其真实性负责,若您对本站所载资源作品版权归属存有异议,请留言附说明联系邮箱,我们将在第一时间予以处理 ,同时向您表示歉意!为尊重作者版权,请购买原版作品,支持您喜欢的作者,谢谢!
4. 本站一律禁止以任何方式发布或转载任何违法的相关信息,访客如有发现请立即向站长举报;本站资源文件大多存储在云盘,如发现链接或图片失效,请联系作者或站长及时更新。

测试-晴天生活分享日志">
彩虹易支付使用教程-晴天生活分享日志">



暂无评论内容