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,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