ν™”. 7μ›” 29th, 2025

Building OnlyOffice with Docker Compose allows you to configure a document collaboration system in just 5 minutes! πŸ“„βœοΈ This guide details everything about building container-based OnlyOffice.

—.

πŸ” What is OnlyOffice?

An open source based integrated office solution:

  • Real-time document collaboration (word/spreadsheet/presentation)
  • MS Office compatible (docx, xlsx, pptx)
  • Cloud storage integration (Nextcloud, OwnCloud, etc.)
  • Mobile support

—.

βš™οΈ Required Prerequisites

  1. complete Docker and Docker Compose installation
    # Check the installation
    docker --version && docker-compose --version
  2. 4GB or more memory (official recommended specification)
  3. open port 80/443 (or use a custom port)

—.

🐳 Analyze Docker Compose files (with comments)

version: '3' # Docker Compose version

services:
  onlyoffice:
    image: onlyoffice/documentserver:7.4 # Official image
    container_name: onlyoffice_ds
    restart: unless-stopped # Set up automatic restarts
    ports:
      - "8000:80" # host:container port mapping.
      - "8443:443" # when using HTTPS
    volumes:
      - ./onlyoffice_data:/var/www/onlyoffice/Data # Save configuration file.
      - ./onlyoffice_logs:/var/log/onlyoffice # Save logs
    environment:
      - JWT_ENABLED=true # Enable security token.
      - JWT_SECRET=my_super_secret_key # Secret key for token generation
      - DB_TYPE=postgres # Database type
    depends_on:
      - postgres

  postgres: # OnlyOffice dedicated DB
    image: postgres:13
    container_name: onlyoffice_db
    restart: unless-stopped
    volumes:
      - ./pg_data:/var/lib/postgresql/data # Persistent storage of DB data
    environment:
      POSTGRES_DB: onlyoffice
      POSTGRES_USER: onlyoffice
      POSTGRES_PASSWORD: onlyoffice_pass

—.

πŸ› οΈ Step-by-step deployment guide

  1. create a working directory

    mkdir onlyoffice && cd onlyoffice
  2. create a docker-compose.yml file Copy and save the example above

  3. Run the service πŸš€.

    docker-compose up -d

    Example of execution result (Image: Container execution screen) (Image: Container execution screen)

  4. **Confirm initialization

    docker-compose logs -f # Monitor logs

—]

πŸ”‘ Set core environment variables

Variable name Default value Description
JWT_ENABLED true Enable API security
JWT_SECRET Secret for token signing
DB_HOST postgres Database hostname
AMQP_URI Used for RabbitMQ integration
WOPI_ENABLED true Enable Web Office integration

—]

🌐 Connecting and testing OnlyOffice

  1. access http://μ„œλ²„IP:8000 in a web browser
  2. Check the Welcome page Welcome screen
  3. edit a test document:
    http://μ„œλ²„IP:8000/example

—.

⚠️ Troubleshooting Key Tips

  1. Document not saved: **Document not saved β†’ Check the volume mount permission: chmod -R 755 ./onlyoffice_data
  2. “Document Server is not responding” β†’ Check the volume mounting permission: chmod -R 755 ./onlyoffice data β†’ Check DB container running normally: docker-compose ps
  3. **HTTPS error β†’ Set Nginx reverse proxy recommendation:
    location / {
      proxy_pass http://localhost:8000;
      proxy_set_header Host $host;
    }

—]

πŸ’‘ Advanced setup tips

  1. integrate Let’s Encrypt. Use certbot after mapping - "443:443" port
  2. **Cloud storage integration Set APP_URL environment variable when integrating Nextcloud
  3. backup strategy Periodic backup of ./onlyoffice_data, ./pg_data directory

—]

βœ… Conclusion: Why OnlyOffice with Docker?

  1. Fast deployment in 5 minutes ⏱️
  2. Easy to update β†’ docker-compose pull && docker-compose up -d
  3. zero compatibility issues** οΏ½
  4. resource efficient (70% ↓ resource usage compared to traditional VMs)

> “Built with Docker Compose, OnlyOffice is a modern document collaboration platform for any size, from small businesses to university campus solutions!”

Start your own OnlyOffice server now! πŸŽ‰ Experience for yourself how a container-based office environment can revolutionize the way you work. D

λ‹΅κΈ€ 남기기

이메일 μ£Όμ†ŒλŠ” κ³΅κ°œλ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. ν•„μˆ˜ ν•„λ“œλŠ” *둜 ν‘œμ‹œλ©λ‹ˆλ‹€