Build own Nextcloud docker container with tools to use flow.

This commit is contained in:
Florian Zirker 2023-02-23 11:30:09 +01:00
parent 160b9286c3
commit 38e861d232
2 changed files with 20 additions and 2 deletions

10
nextcloud/Dockerfile Normal file
View file

@ -0,0 +1,10 @@
ARG NC_MAIN_VERSION
FROM nextcloud:$NC_MAIN_VERSION-fpm
RUN apt-get update && apt-get install -y --no-install-recommends \
imagemagick \
smbclient \
default-jre-headless libreoffice \
ffmpeg \
ocrmypdf tesseract-ocr-deu \
&& rm -rf /var/lib/apt/lists/*

View file

@ -27,7 +27,11 @@ services:
app:
image: nextcloud:${NC_MAIN_VERSION}-fpm
image: nextcloud:${NC_MAIN_VERSION}-fpm-own
build:
context: ./
args:
- NC_MAIN_VERSION=${NC_MAIN_VERSION}
volumes:
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html
- ${VOLUMES_PATH}/nextcloud_data:/var/www/html/data
@ -50,7 +54,11 @@ services:
cron:
image: nextcloud:${NC_MAIN_VERSION}
image: nextcloud:${NC_MAIN_VERSION}-fpm-own
build:
context: ./
args:
- NC_MAIN_VERSION=${NC_MAIN_VERSION}
restart: unless-stopped
networks:
- nextcloud