Skip to content

Commit e60fc0c

Browse files
authored
Merge pull request #11624 from owncloud/fix_ocis_full
feat: added the onlyoffice ee license to the ocis deployment.
2 parents ea2baaa + 19f75f8 commit e60fc0c

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

deployments/examples/ocis_full/.env

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,16 @@ CLAMAV_DOCKER_TAG=
219219
#ONLYOFFICE=:onlyoffice.yml
220220
# Domain for OnlyOffice. Defaults to "onlyoffice.owncloud.test".
221221
ONLYOFFICE_DOMAIN=
222+
# Set onlyoffice/documentserver-ee to use the Enterprise Edition.
223+
#ONLYOFFICE_IMAGE=onlyoffice/documentserver-ee
224+
# Defaults to "latest". Optional: pin a version (recommended)
225+
ONLYOFFICE_DOCKER_TAG=
226+
# Runtime env (works for both; EE typically wants these).
227+
#ONLYOFFICE_JWT_ENABLED=false
228+
#ONLYOFFICE_REDIS_HOST=localhost
229+
#ONLYOFFICE_REDIS_PORT=6379
230+
# EE only: path to your license on the host.
231+
#ONLYOFFICE_LICENSE_LOCAL=./config/onlyoffice/license.lic
222232

223233

224234
### Mail Server Settings ###

deployments/examples/ocis_full/config/onlyoffice/entrypoint-override.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ set -e
44
# we can't mount it directly because the run-document-server.sh script wants to move it
55
cp /etc/onlyoffice/documentserver/local.dist.json /etc/onlyoffice/documentserver/local.json
66

7+
# Ensure license file has the correct permissions
8+
if [ -f /var/www/onlyoffice/Data/license.lic ]; then
9+
echo "Fixing permissions on license.lic..."
10+
chmod 644 /var/www/onlyoffice/Data/license.lic || true
11+
fi
12+
713
/app/ds/run-document-server.sh

deployments/examples/ocis_full/onlyoffice.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ services:
4646
onlyoffice:
4747
# if you want to use oo enterprise edition, use: onlyoffice/documentserver-ee:<version>
4848
# note, you also need to add a volume, see below
49-
image: onlyoffice/documentserver:9.0.4
49+
image: ${ONLYOFFICE_IMAGE:-onlyoffice/documentserver}:${ONLYOFFICE_DOCKER_TAG:-latest}
5050
# changelog https://github.com/ONLYOFFICE/DocumentServer/releases
5151
networks:
5252
ocis-net:
@@ -56,14 +56,19 @@ services:
5656
environment:
5757
WOPI_ENABLED: "true"
5858
# self-signed certificates
59-
USE_UNAUTHORIZED_STORAGE: "${INSECURE:-false}"
59+
USE_UNAUTHORIZED_STORAGE: ${INSECURE:-false}
60+
JWT_ENABLED: ${ONLYOFFICE_JWT_ENABLED:-false}
61+
REDIS_SERVER_HOST: ${ONLYOFFICE_REDIS_HOST:-localhost}
62+
REDIS_SERVER_PORT: ${ONLYOFFICE_REDIS_PORT:-6379}
6063
volumes:
6164
# paths are relative to the main compose file
6265
- ./config/onlyoffice/entrypoint-override.sh:/entrypoint-override.sh
6366
- ./config/onlyoffice/local.json:/etc/onlyoffice/documentserver/local.dist.json
64-
# if you want to use oo enterprise edition, you need to add a volume for the license file
65-
# for details see: Registering your Enterprise Edition version -->
67+
# Mount the license file only if using enterprise edition.
68+
# For details see: Registering your Enterprise Edition version:
6669
# https://helpcenter.onlyoffice.com/installation/docs-enterprise-install-docker.aspx
70+
# Uncomment and set ONLYOFFICE_LICENSE_LOCAL to the license file path.
71+
#- ${ONLYOFFICE_LICENSE_LOCAL:-/dev/null}:/var/www/onlyoffice/Data/license.lic:ro
6772
labels:
6873
- "traefik.enable=true"
6974
- "traefik.http.routers.onlyoffice.entrypoints=https"

deployments/examples/ocis_full/web_extensions/externalsites.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
services:
33
ocis:
4+
volumes:
5+
- ./config/ocis/apps.yaml:/etc/ocis/apps.yaml
46
depends_on:
57
externalsites-init:
68
condition: service_completed_successfully

0 commit comments

Comments
 (0)