Add OnlyOffice Document Server compose (standalone, Community Edition, AGPL-3) — for docx access via OpenCloud dockhand (.99)
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# OpenCloud Dockhand Stack — Stack Readme
|
||||
# Source: upstream https://github.com/opencloud-eu/opencloud-compose
|
||||
# Built for dockhand (https://dock.maukit.com/api) — files only, NOT DEPLOYED.
|
||||
# User (Alister) explicitly requested no deployment; no docker-compose up executed.
|
||||
|
||||
## What was built
|
||||
- /opt/data/opencloud-dockhand/
|
||||
- .env — production vars; includes search (tika) + euro office + traefik
|
||||
- .env.example — same as .env for reference
|
||||
- docker-compose.yml — upstream opencloud core
|
||||
- search/tika.yml — full-text search (Apache Tika); adds tika service + opencloud env vars
|
||||
- weboffice/euro-office.yml — Euro Office (OnlyOffice / Euro Office document server)
|
||||
- opencloud-config (host bind)
|
||||
- opencloud-data (host bind)
|
||||
- /etc/opencloud (opencloud container config)
|
||||
- config/opencloud/csp.yaml — CSP security directives (includes euro-office frame-src)
|
||||
- config/opencloud/apps.yaml — app registry settings
|
||||
- config/opencloud/banned-password-list.txt — banned-password policy file
|
||||
- config/euro-office/app-registry.yaml — file-type mappings (docx/xlsx/pptx -> Euro Office)
|
||||
- config/traefik/docker-entrypoint-override.sh — traefik entrypoint script (upstream)
|
||||
|
||||
## How to deploy (DO NOT run automatically; user said no deploy)
|
||||
# 1. Create .env (copy from .env.example) and set:
|
||||
# - OC_DOMAIN (e.g., cloud.yourdomain.test)
|
||||
# - INITIAL_ADMIN_PASSWORD (must be set before first container start)
|
||||
# - EURO_OFFICE_JWT_SECRET (generate a long random string)
|
||||
# Compose assembly (no traefik — using existing Traefik at dock):
|
||||
# docker compose -f docker-compose.yml -f search/tika.yml \
|
||||
# -f weboffice/euro-office.yml up -d
|
||||
# 3. Create volumes / directories:
|
||||
# mkdir -p opencloud-config opencloud-data ./certs
|
||||
# 4. Add domain mappings to /etc/hosts (local dev) or DNS A records (production).
|
||||
|
||||
## Search / Full-Text
|
||||
- Tika image: apache/tika:latest (base variant for smaller size / faster start)
|
||||
- OpenCloud configured: SEARCH_EXTRACTOR_TYPE=tika, FRONTEND_FULL_TEXT_SEARCH_ENABLED=true
|
||||
- Tika URL: http://tika:9998
|
||||
- Search only activates after tika container passes healthcheck (depends_on condition)
|
||||
|
||||
## Euro Office (OnlyOffice / DocumentServer)
|
||||
- Image: ghcr.io/euro-office/documentserver:latest
|
||||
- WOPI enabled; collaboration service runs inside opencloud via START_ADDITIONAL_SERVICES
|
||||
- CSP / frame-src references updated to euro-office.maukit.com
|
||||
- Fonts mounted: /usr/share/fonts/truetype (optional; install ttf-mscorefonts-installer on host for Microsoft fonts)
|
||||
|
||||
## Dockhand / Existing Traefik
|
||||
- Existing Traefik handles TLS (letsencrypt) and routing; no traefik service in compose.
|
||||
- Stack assembly (no traefik): docker-compose.yml + search/tika.yml + weboffice/euro-office.yml
|
||||
- Domains: OC_DOMAIN=cloud.maukit.com; EURO_OFFICE_DOMAIN=euro-office.maukit.com
|
||||
- Container UID: 1000:1000 (default); match host ownership
|
||||
@@ -0,0 +1,60 @@
|
||||
# OnlyOffice Document Server — standalone stack for Alister's environment.
|
||||
# Environment: OpenCloud dockhand (.99 / dock.maukit.com) with existing Traefik.
|
||||
# Source reference: /opt/data/opencloud-dockhand/README.md (Euro-Office setup),
|
||||
# /opt/data/opencloud-dockhand/weboffice/euro-office.yml
|
||||
# Note: Community Edition (AGPL-3, 20 concurrent conn limit). Free.
|
||||
# NOT deployed automatically (user requested no deploy).
|
||||
|
||||
services:
|
||||
onlyoffice-docs:
|
||||
image: ${ONLYOFFICE_DOCKER_IMAGE:-onlyoffice/documentserver}:${ONLYOFFICE_DOCKER_TAG:-7.2.0}
|
||||
container_name: onlyoffice-docs
|
||||
restart: always
|
||||
networks:
|
||||
- opencloud-net
|
||||
environment:
|
||||
# WOPI / collaboration (required for docx access through cloud)
|
||||
WOPI_ENABLED: "true"
|
||||
# JWT secret — generate once, keep consistent (see OnlyOffice docs).
|
||||
# Do NOT invent a value; either copy from euro-office.yml's
|
||||
# EURO_OFFICE_JWT_SECRET or generate: openssl rand -hex 32
|
||||
JWT_SECRET: "${ONLYOFFICE_JWT_SECRET:-REPLACE_WITH_REAL_SECRET}"
|
||||
JWT_HEADER: AuthorizationJwt
|
||||
# Storage (use false for internal test; true if behind TLS proxy — match your setup)
|
||||
USE_UNAUTHORIZED_STORAGE: "${INSECURE:-true}"
|
||||
ports:
|
||||
# Direct access (optional; mainly for traefik / internal routing).
|
||||
- "8081:80"
|
||||
volumes:
|
||||
- onlyoffice-data:/var/www/onlyoffice/Data
|
||||
- onlyoffice-logs:/var/log/onlyoffice
|
||||
healthcheck:
|
||||
test:
|
||||
- "CMD"
|
||||
- "bash"
|
||||
- "-c"
|
||||
- "exec 3<>/dev/tcp/127.0.0.1/80 && printf 'GET /hosting/discovery HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n' >&3 && cat <&3 | head -1 | grep -q '200 OK'"
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 120s
|
||||
labels:
|
||||
# Matches existing traefik setup (.99 / dock.maukit.com / opencloud-net).
|
||||
- "traefik.enable=true"
|
||||
# Set domain in .env as ONLYOFFICE_DOMAIN (e.g., onlyoffice.maukit.com)
|
||||
- "traefik.http.routers.onlyoffice.rule=Host(`${ONLYOFFICE_DOMAIN:-onlyoffice.maukit.com}`)"
|
||||
- "traefik.http.routers.onlyoffice.entrypoints=websecure"
|
||||
- "traefik.http.routers.onlyoffice.tls.certresolver=letsencrypt"
|
||||
# Service / port for traefik
|
||||
- "traefik.http.services.onlyoffice.loadbalancer.server.port=80"
|
||||
# Fonts (optional): mount host MS fonts if installed (tika/euro-office use /usr/share/fonts/truetype)
|
||||
# - /usr/share/fonts/truetype:/usr/share/fonts/truetype/more:ro
|
||||
|
||||
networks:
|
||||
opencloud-net:
|
||||
external: true
|
||||
name: opencloud-net
|
||||
|
||||
volumes:
|
||||
onlyoffice-data:
|
||||
onlyoffice-logs:
|
||||
Reference in New Issue
Block a user