Deploy Nextcloud + OnlyOffice
IMPLEMENTATION RULES: Before implementing this plan, read and follow:
- WORKFLOW.md - The implementation process
- PLANS.md - Plan structure and best practices
Status: Completed
Goal: Deploy Nextcloud 33 with OnlyOffice Document Server as a UIS platform service, reusing existing PostgreSQL and Redis
Last Updated: 2026-03-10
Investigation: INVESTIGATE-nextcloud-deployment.md
Overview
Nextcloud is a self-hosted collaboration platform (file sync, document editing, calendar, contacts). It will be deployed as manifest 620 in the MANAGEMENT category using the official Helm chart (v9.0.3). OnlyOffice Document Server provides browser-based document editing (DOCX, XLSX, PPTX) and is deployed as a separate Deployment in the same namespace.
Key decisions from investigation:
- Nextcloud image:
nextcloud:33-apache(Nextcloud 33.0.0, pinned) - OnlyOffice image:
onlyoffice/documentserver:9.3.1(~1.5 GB, pinned) - Helm chart:
nextcloud/nextcloudv9.0.3 - Pattern: Helm for Nextcloud, plain Deployment for OnlyOffice
- Category: MANAGEMENT, manifest 620
- Namespace:
nextcloud - Dependencies: Reuses existing PostgreSQL (manifest 042) and Redis (manifest 050) — no new backing services
- Redis host:
redis-master.default.svc.cluster.local(Bitnami naming) - Admin:
admin/ password fromNEXTCLOUD_ADMIN_PASSWORDsecret - OnlyOffice JWT: Shared secret (
ONLYOFFICE_JWT_SECRET) must match between containers - OnlyOffice integration: Fully automated via
occCLI — no manual UI steps - Cron: Sidecar container running
/cron.sh - Health endpoint:
GET /status.phpreturns JSON withinstalled,maintenance,needsDbUpgrade - First boot: 1–5 minutes (DB migrations, file copy). Startup probe allows 5 minutes.
- PHP tuning: Upload limit increased to 512M (default is 2MB)
Phase 1: Service Definition and Configuration Files — ✅ DONE
Create all static files needed before deployment.
Tasks
- 1.1 Create service definition
provision-host/uis/services/management/service-nextcloud.sh✓ - 1.2 Create Helm values
manifests/620-nextcloud-config.yaml✓ - 1.3 Create Nextcloud IngressRoute
manifests/621-nextcloud-ingressroute.yaml✓ - 1.4 Create OnlyOffice config
manifests/622-onlyoffice-config.yaml(Deployment + Service) ✓ - 1.5 Create OnlyOffice IngressRoute
manifests/623-onlyoffice-ingressroute.yaml✓ - 1.6 Add Nextcloud + OnlyOffice secrets to
provision-host/uis/templates/secrets-templates/00-common-values.env.template✓ - 1.7 Add
nextcloudnamespace block toprovision-host/uis/templates/secrets-templates/00-master-secrets.yml.template✓