mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 01:48:26 +00:00
Try provide docker setup
This commit is contained in:
33
docker/docker-compose.yml
Normal file
33
docker/docker-compose.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
restserver:
|
||||||
|
image: eikek0/docspell:restserver-0.4.0
|
||||||
|
container_name: docspell-restserver
|
||||||
|
command: /opt/docspell.conf
|
||||||
|
ports:
|
||||||
|
- "7880:7880"
|
||||||
|
volumes:
|
||||||
|
- ${PWD}/docspell.conf:/opt/docspell.conf
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
db:
|
||||||
|
image: postgres:11.7
|
||||||
|
container_name: postgres_db
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data/
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=dbuser
|
||||||
|
- POSTGRES_PASSWORD=dbpass
|
||||||
|
- POSTGRES_DB=dbname
|
||||||
|
joex:
|
||||||
|
image: eikek0/docspell:joex-0.4.0
|
||||||
|
container_name: docspell-joex
|
||||||
|
command: /opt/docspell.conf
|
||||||
|
ports:
|
||||||
|
- "7878:7878"
|
||||||
|
volumes:
|
||||||
|
- ${PWD}/docspell.conf:/opt/docspell.conf
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
28
docker/docspell.conf
Normal file
28
docker/docspell.conf
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
docspell.server {
|
||||||
|
base-url = "http://localhost:7880"
|
||||||
|
bind {
|
||||||
|
address = "0.0.0.0"
|
||||||
|
}
|
||||||
|
backend {
|
||||||
|
jdbc {
|
||||||
|
url = "jdbc:postgresql://db:5432/dbname"
|
||||||
|
user = "dbuser"
|
||||||
|
password = "dbpass"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
docspell.joex {
|
||||||
|
base-url = "http://joex:7878"
|
||||||
|
bind {
|
||||||
|
address = "0.0.0.0"
|
||||||
|
}
|
||||||
|
jdbc {
|
||||||
|
url = "jdbc:postgresql://db:5432/dbname"
|
||||||
|
user = "dbuser"
|
||||||
|
password = "dbpass"
|
||||||
|
}
|
||||||
|
scheduler {
|
||||||
|
pool-size = 1
|
||||||
|
}
|
||||||
|
}
|
36
docker/joex.dockerfile
Normal file
36
docker/joex.dockerfile
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ENV UNO_URL https://raw.githubusercontent.com/unoconv/unoconv/0.9.0/unoconv
|
||||||
|
|
||||||
|
LABEL maintainer="eikek0 <eike@docspell.org>"
|
||||||
|
|
||||||
|
RUN apk add --no-cache openjdk11-jre \
|
||||||
|
unzip \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
ghostscript \
|
||||||
|
tesseract-ocr \
|
||||||
|
tesseract-ocr-data-deu \
|
||||||
|
unpaper \
|
||||||
|
wkhtmltopdf \
|
||||||
|
libreoffice \
|
||||||
|
ttf-droid-nonlatin \
|
||||||
|
ttf-droid \
|
||||||
|
ttf-dejavu \
|
||||||
|
ttf-freefont \
|
||||||
|
ttf-liberation \
|
||||||
|
&& curl -Ls $UNO_URL -o /usr/local/bin/unoconv \
|
||||||
|
&& chmod +x /usr/local/bin/unoconv \
|
||||||
|
&& ln -s /usr/bin/python3 /usr/bin/python \
|
||||||
|
&& mkdir -p /opt \
|
||||||
|
&& cd /opt \
|
||||||
|
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.4.0/docspell-joex-0.4.0.zip \
|
||||||
|
&& unzip docspell.zip \
|
||||||
|
&& rm docspell.zip \
|
||||||
|
&& apk del curl unzip
|
||||||
|
|
||||||
|
COPY joex/entrypoint.sh /opt/entrypoint.sh
|
||||||
|
|
||||||
|
EXPOSE 7878
|
||||||
|
|
||||||
|
ENTRYPOINT ["/opt/entrypoint.sh"]
|
6
docker/joex/entrypoint.sh
Executable file
6
docker/joex/entrypoint.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Starting unoconv listener"
|
||||||
|
unoconv -l &
|
||||||
|
|
||||||
|
/opt/docspell-joex-0.4.0/bin/docspell-joex "$@"
|
16
docker/restserver.dockerfile
Normal file
16
docker/restserver.dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
LABEL maintainer="eikek0 <eike@docspell.org>"
|
||||||
|
|
||||||
|
RUN apk add --no-cache openjdk11-jre unzip curl bash
|
||||||
|
|
||||||
|
RUN mkdir -p /opt \
|
||||||
|
&& cd /opt \
|
||||||
|
&& curl -L -o docspell.zip https://github.com/eikek/docspell/releases/download/v0.4.0/docspell-restserver-0.4.0.zip \
|
||||||
|
&& unzip docspell.zip \
|
||||||
|
&& rm docspell.zip \
|
||||||
|
&& apk del unzip curl
|
||||||
|
|
||||||
|
EXPOSE 7880
|
||||||
|
|
||||||
|
ENTRYPOINT ["/opt/docspell-restserver-0.4.0/bin/docspell-restserver"]
|
Reference in New Issue
Block a user