From 99435959ac0835579af302943e35923809f237e1 Mon Sep 17 00:00:00 2001 From: Alex Zaw Date: Mon, 6 Apr 2026 18:10:28 +0000 Subject: [PATCH] Add standalone docker-compose without Runtipi dependencies --- docker-compose.standalone.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 docker-compose.standalone.yml diff --git a/docker-compose.standalone.yml b/docker-compose.standalone.yml new file mode 100644 index 0000000..c006a36 --- /dev/null +++ b/docker-compose.standalone.yml @@ -0,0 +1,44 @@ +version: "3.9" + +# Standalone docker-compose for ONLYOFFICE Document Server +# Works independently without Runtipi + +services: + onlyoffice-docs: + image: onlyoffice/documentserver:8.2 + container_name: onlyoffice-docs + restart: unless-stopped + ports: + - "${ONLYOFFICE_PORT:-8044}:80" + environment: + # JWT Configuration + - JWT_ENABLED=${JWT_ENABLED:-true} + - JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required} + - JWT_HEADER=${JWT_HEADER:-Authorization} + - JWT_IN_BODY=${JWT_IN_BODY:-false} + # Storage Configuration + - USE_UNAUTHORIZED_STORAGE=${USE_UNAUTHORIZED_STORAGE:-false} + # WOPI Configuration + - WOPI_ENABLED=${WOPI_ENABLED:-false} + # Performance tuning + - NGINX_WORKER_PROCESSES=auto + - NGINX_WORKER_CONNECTIONS=4096 + # Font generation + - GENERATE_FONTS=true + volumes: + # Logs + - ./data/logs:/var/log/onlyoffice + # Certificates and data + - ./data/data:/var/www/onlyoffice/Data + # File cache + - ./data/lib:/var/lib/onlyoffice + # Internal PostgreSQL database + - ./data/db:/var/lib/postgresql + # Custom fonts (optional) + - ./data/fonts:/usr/share/fonts/truetype/custom + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost/healthcheck"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 60s