[GH-ISSUE #338] Runs without mySQL container! #174

Closed
opened 2026-02-26 10:30:34 +03:00 by kerem · 5 comments
Owner

Originally created by @zilexa on GitHub (Mar 3, 2021).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/338

I noticed DocumentServer runs fine without a mysql server.
This is not mentioned in the documentation. Now I am wondering what the minimum set of arguments and variables is to have DocumentServer running?

This is my Docker Compose for OnlyOffice +rabbitmq, I left out my Caddy labels for https/reverse proxy (they work, but still haven an issue to open documents from FileRun (nextcloud alternative, also runs via Compose in the same network):

  onlyoffice:
    image: onlyoffice/documentserver
    container_name: onlyoffice
    depends_on:
      #- onlyoffice-postgresql
      - onlyoffice-rabbitmq
    stdin_open: true
    restart: always
    networks: 
      - caddy
    tty: true
    ports:
      - "8889:80"
    volumes:
      - $USERDIR/docker/onlyoffice/data:/var/www/onlyoffice/Data
      - $USERDIR/docker/onlyoffice/log:/var/log/onlyoffice
      - $USERDIR/docker/onlyoffice/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files
      - $USERDIR/docker/onlyoffice/example:/var/www/onlyoffice/documentserver-example/public/files
      - $USERDIR/docker/onlyoffice/fonts:/usr/share/fonts
    dns: 1.1.1.1
    environment:
      - JWT_ENABLED="true"
      - JWT_SECRET=$ONLYOFFICEJWT
      #- DB_TYPE=postgres
      #- DB_HOST=onlyoffice-postgresql
      #- DB_PORT=5432
      #- DB_NAME=onlyoffice
      #- DB_USER=onlyoffice
      - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
  onlyoffice-rabbitmq:
    container_name: onlyoffice-rabbitmq
    image: rabbitmq
    restart: always
    networks: 
      - caddy
    expose:
      - '5672'
Originally created by @zilexa on GitHub (Mar 3, 2021). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/338 I noticed DocumentServer runs fine without a mysql server. This is not mentioned in the documentation. Now I am wondering what the minimum set of arguments and variables is to have DocumentServer running? This is my Docker Compose for OnlyOffice +rabbitmq, I left out my Caddy labels for https/reverse proxy (they work, but still haven an issue to open documents from FileRun (nextcloud alternative, also runs via Compose in the same network): ``` onlyoffice: image: onlyoffice/documentserver container_name: onlyoffice depends_on: #- onlyoffice-postgresql - onlyoffice-rabbitmq stdin_open: true restart: always networks: - caddy tty: true ports: - "8889:80" volumes: - $USERDIR/docker/onlyoffice/data:/var/www/onlyoffice/Data - $USERDIR/docker/onlyoffice/log:/var/log/onlyoffice - $USERDIR/docker/onlyoffice/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files - $USERDIR/docker/onlyoffice/example:/var/www/onlyoffice/documentserver-example/public/files - $USERDIR/docker/onlyoffice/fonts:/usr/share/fonts dns: 1.1.1.1 environment: - JWT_ENABLED="true" - JWT_SECRET=$ONLYOFFICEJWT #- DB_TYPE=postgres #- DB_HOST=onlyoffice-postgresql #- DB_PORT=5432 #- DB_NAME=onlyoffice #- DB_USER=onlyoffice - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq onlyoffice-rabbitmq: container_name: onlyoffice-rabbitmq image: rabbitmq restart: always networks: - caddy expose: - '5672' ```
kerem closed this issue 2026-02-26 10:30:35 +03:00
Author
Owner

@ShockwaveNN commented on GitHub (Mar 4, 2021):

I noticed DocumentServer runs fine without a mysql server.

This is because if there is no external database connect (in case of docker-compose - composed mysql is external) - internal postgresql installed in image is used

Now I am wondering what the minimum set of arguments and variables is to have DocumentServer running?

docker run -it -p 80:80 onlyoffice/documentserver

<!-- gh-comment-id:790384452 --> @ShockwaveNN commented on GitHub (Mar 4, 2021): > I noticed DocumentServer runs fine without a mysql server. This is because if there is no external database connect (in case of docker-compose - composed mysql is external) - internal postgresql installed in image is used > Now I am wondering what the minimum set of arguments and variables is to have DocumentServer running? `docker run -it -p 80:80 onlyoffice/documentserver`
Author
Owner

@zilexa commented on GitHub (Mar 4, 2021):

Aha good to know its also built-in.

docker run -it -p 80:80 onlyoffice/documentserver

But I remember when setting up, rabbit-mq is required. Is that also built-in?

And is the database itself expendable? For example if I use DocumentServer for a while without creating volume mappings for postgresql data, then delete the container/recreate it, will I loose certain document history?

<!-- gh-comment-id:790560199 --> @zilexa commented on GitHub (Mar 4, 2021): Aha good to know its also built-in. >docker run -it -p 80:80 onlyoffice/documentserver But I remember when setting up, rabbit-mq is required. Is that also built-in? And is the database itself expendable? For example if I use DocumentServer for a while without creating volume mappings for postgresql data, then delete the container/recreate it, will I loose certain document history?
Author
Owner

@ShockwaveNN commented on GitHub (Mar 4, 2021):

But I remember when setting up, rabbit-mq is required. Is that also built-in?

Yes, reabbimq also included in container by default

will I loose certain document history?

Document history is stored on level of your DMS, like nextcloud

I'm not 100% sure, but if your users close all documents, you run prepare4shutdown script and after that connect to clear DB - nothing should be lost

<!-- gh-comment-id:790570768 --> @ShockwaveNN commented on GitHub (Mar 4, 2021): > But I remember when setting up, rabbit-mq is required. Is that also built-in? Yes, reabbimq also included in container by default > will I loose certain document history? Document history is stored on level of your DMS, like nextcloud I'm not 100% sure, but if your users close all documents, you run prepare4shutdown script and after that connect to clear DB - nothing should be lost
Author
Owner

@zilexa commented on GitHub (Mar 4, 2021):

Thanks, I will remove rabbitmq from my docker-compose.

I'm not 100% sure, but if your users close all documents, you run prepare4shutdown script and after that connect to clear DB - nothing should be lost

I will probably not remember that when I need to reboot my host, better alternative then is to add a volume map for /var/lib/postgresql. Thanks!

<!-- gh-comment-id:790579381 --> @zilexa commented on GitHub (Mar 4, 2021): Thanks, I will remove rabbitmq from my docker-compose. >I'm not 100% sure, but if your users close all documents, you run prepare4shutdown script and after that connect to clear DB - nothing should be lost I will probably not remember that when I need to reboot my host, better alternative then is to add a volume map for `/var/lib/postgresql`. Thanks!
Author
Owner

@ShockwaveNN commented on GitHub (Mar 4, 2021):

You're welcome

Seems all your questions\problems are resolved and I'll close this issue

<!-- gh-comment-id:790635784 --> @ShockwaveNN commented on GitHub (Mar 4, 2021): You're welcome Seems all your questions\problems are resolved and I'll close this issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#174
No description provided.