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.