working on onlyoffice+collabora integration

This commit is contained in:
2025-12-29 15:43:05 -05:00
parent 735668d757
commit b36554df16
3 changed files with 64 additions and 0 deletions

View File

@ -59,6 +59,12 @@ x-common-env: &common-env
# Collaboration
COLLABORATION_API_URL: https://$DOMAIN/collaboration/api/
# WOPI
WOPI_CLIENTS: "collabora,onlyoffice"
WOPI_COLLABORA_DISCOVERY_URL: "http://collabora:9980/hosting/discovery"
WOPI_ONLYOFFICE_DISCOVERY_URL: "http://onlyoffice/hosting/discovery"
WOPI_SRC_BASE_URL: "http://backend:8000"
x-postgres-env: &postgres-env
# Postgresql db container configuration
POSTGRES_DB: drive
@ -241,6 +247,43 @@ services:
- "traefik.http.middlewares.minio-cors.headers.addVaryHeader=true"
- "traefik.http.routers.minio.middlewares=minio-cors"
collabora:
image: collabora/code:latest
# healthcheck:
# test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ]
# interval: 30s
# retries: 5
# start_period: 60s
# timeout: 10s
networks:
- backend
# ports:
# - "9980:9980"
environment:
- extra_params=--o:ssl.enable=false
- username=drive
- password=password
- server_name=localhost:9980
- aliasgroup1=app-dev:8000
onlyoffice:
image: onlyoffice/documentserver-de:9.2
# healthcheck:
# test: [ "CMD", "curl", "-f", "http://localhost/hosting/discovery" ]
# interval: 30s
# retries: 5
# start_period: 60s
# timeout: 10s
environment:
TZ: "Europe/Berlin"
USE_UNAUTHORIZED_STORAGE: "true"
networks:
- backend
configs:
- source: onlyoffice_conf
target: /etc/onlyoffice/documentserver/local-production-linux.json
web:
image: nginx:1.25
configs:
@ -284,6 +327,9 @@ configs:
abra_entrypoint:
name: ${STACK_NAME}_entrypoint_${ABRA_ENTRYPOINT_VERSION}
file: abra-entrypoint.sh
onlyoffice_conf:
name: ${STACK_NAME}_onlyoffice_conf_${ONLYOFFICE_CONF_VERSION}
file: onlyoffice-config.json
secrets:
django_sk: