iso27diy-corp/business-server/Only-Office.md
2026-06-06 20:38:07 +02:00

1.1 KiB
Raw Blame History

Heres a Docker Compose file for ONLYOFFICE Workspace Community Edition, configured to work with your existing nginx setup and avoiding ports 3000/3001. This setup uses ports 3002 (for the Community Server) and 3003 (for the Document Server), which you can proxy via nginx to docs.iso27diy.com.

version: '3.8'

services:
  onlyoffice-community-server:
    image: onlyoffice/communityserver:latest
    container_name: onlyoffice-community-server
    restart: always
    environment:
      - DOCUMENT_SERVER_PORT_3003=3003
    volumes:
      - ./community-data:/var/www/onlyoffice/Data
      - ./community-logs:/var/log/onlyoffice
    ports:
      - "3002:80"
    depends_on:
      - onlyoffice-document-server

  onlyoffice-document-server:
    image: onlyoffice/documentserver:latest
    container_name: onlyoffice-document-server
    restart: always
    environment:
      - JWT_SECRET=your_jwt_secret_here  # Change this to a secure random string
    volumes:
      - ./document-data:/var/www/onlyoffice/Data
      - ./document-logs:/var/log/onlyoffice
    ports:
      - "3003:80"
    cap_add:
      - SYS_ADMIN