diff --git a/nextcloud/docker-compose.yml b/nextcloud/docker-compose.yml index 387b2f5..8578ff7 100644 --- a/nextcloud/docker-compose.yml +++ b/nextcloud/docker-compose.yml @@ -19,7 +19,7 @@ networks: services: nextcloud-app: - image: nextcloud-cron:25.0.8 + image: nextcloud-cron:26.0.10 build: . container_name: nextcloud-app restart: unless-stopped @@ -74,8 +74,11 @@ services: restart: unless-stopped onlyoffice: + build: + context: . + dockerfile: ./dockerfile-oo container_name: onlyoffice - image: onlyoffice_1000:7.2.2_forcesave + image: onlyoffice:7.5.1 restart: unless-stopped extra_hosts : cloud.oasis21.org : 172.16.7.10 diff --git a/nextcloud/dockerfile b/nextcloud/dockerfile index e1cb08f..1ec08a1 100644 --- a/nextcloud/dockerfile +++ b/nextcloud/dockerfile @@ -1,4 +1,4 @@ -FROM nextcloud:25.0.8-apache +FROM nextcloud:26.0.10-apache ARG VERSION diff --git a/nextcloud/dockerfile-oo b/nextcloud/dockerfile-oo new file mode 100644 index 0000000..dee9126 --- /dev/null +++ b/nextcloud/dockerfile-oo @@ -0,0 +1,9 @@ +FROM thomisus/onlyoffice-documentserver-unlimited:7.5.1 + +ARG VERSION + +RUN sed -i '27i FORCESAVE_ENABLE=${FORCESAVE_ENABLE:-false}\nFORCESAVE_INTERVAL=${FORCESAVE_INTERVAL:-5m}\nFORCESAVE_STEP=${FORCESAVE_STEP:-1m}\n' /app/ds/run-document-server.sh +RUN sed -i '340i ${JSON} -I -e "if(this.services.CoAuthoring.autoAssembly===undefined)this.services.CoAuthoring.autoAssembly={};"' /app/ds/run-document-server.sh +RUN sed -i '341i ${JSON} -I -e "this.services.CoAuthoring.autoAssembly.enable = ${FORCESAVE_ENABLE}"' /app/ds/run-document-server.sh +RUN sed -i '342i ${JSON} -I -e "this.services.CoAuthoring.autoAssembly.interval = \x27${FORCESAVE_INTERVAL}\x27"' /app/ds/run-document-server.sh +RUN sed -i '343i ${JSON} -I -e "this.services.CoAuthoring.autoAssembly.step = \x27${FORCESAVE_STEP}\x27"\n' /app/ds/run-document-server.sh