Which docker image to install and how?

Do you want to: Ask a how-to question
Document Server version:
docker on windows host with wsl backend on amd64 architecture
OS: windows 10
Browser version: firefox, chrome

I am a bit confused. Just found the OnlyOffice and want to install as docker container but there are many things, different versions, variants, I couldn’t even understand…

So, I prompted Gemini to draft me a docker-compose.yml file, and I also checked OnlyOffice documentation and modified a bit.

I cannot upload docker-compose as attachment, so I paste it below:

services:
onlyoffice-document-server:
container_name: onlyoffice-document-server
image: onlyoffice/documentserver:latest
restart: unless-stopped
ports:
- “80:80”
- “443:443”
volumes:
- ./DocumentServer/data:/var/www/onlyoffice/Data
- ./DocumentServer/logs:/var/log/onlyoffice
- ./DocumentServer/lib:/var/lib/onlyoffice
- ./DocumentServer/db:/var/lib/postgresql
depends_on:
- onlyoffice-postgresql
networks:
- onlyoffice-net
environment:
- POSTGRESQL_SERVER_HOST=onlyoffice-postgresql
- POSTGRESQL_SERVER_PORT=5432
- POSTGRESQL_SERVER_DB_NAME=onlyoffice
- POSTGRESQL_SERVER_USER=onlyoffice
- POSTGRESQL_SERVER_PASS=onlyoffice

onlyoffice-postgresql:
    container_name: onlyoffice-postgresql
    image: postgres:13
    restart: unless-stopped
    environment:
        POSTGRES_USER: onlyoffice
        POSTGRES_PASSWORD: onlyoffice
        POSTGRES_DB: onlyoffice
    volumes:
        - ./PostgreSQL/onlyoffice_db:/var/lib/postgresql/data
    healthcheck:
        test: ["CMD-SHELL", "pg_isready -U onlyoffice -d onlyoffice"]
        interval: 5s
        timeout: 5s
        retries: 5
    networks:
        - onlyoffice-net

networks:
onlyoffice-net:
driver: bridge


So, is this correct ? Do I really need PostgreSQL backend and are these environment variables correct ?
because, Gemini wrote these environment variables but I couldn’t see them in documentation or github pages. but I saw something about MySQL database ? do I need to run MySQL container as well ?

I am student and just needed a local docker deployed office suite. Thank you in advance.

Hello there.
Just follow the official installation guides. You don’t need postgresql when you use the official image. There is no need to reinvent the wheel with fancy new toys :wink:

If you really get stuck somewhere ask again. Docker is pretty easy once you understand the works.

1 Like

Hello @martineden,
Please follow the instructions provided above, the first one is recommended.
Additionally, please note that it is not advised to install Onlyoffice Docs in wsl, this installation is not officially supported, for Docker installation you’d need to have a VM with Linux (OS: amd64 Linux distribution with kernel version 3.10 or later*)

i created docker image and run as per your installation guides but i getting error while open editor and upload and open document ,please give me solution asap ,i atteched screenshot below

Hello there.
Please post your compose files for Nextcloud and Onlyoffice containers. Redact sensitive information if necessary.
Do your use a proxy? If so, please post your config regarding access to the NC and OO containers.

@rohan Please create a new topic for this issue, as it is unrelated to the original discussion. There provide the following info:

  1. Document Server logs from /var/log/onlyoffice/documentserver (inside the container).
  2. What is the OS on which you are running Document Server?
  3. What do you integrate Document Server with?