Connecting Dameng database to ONLYOFFICE Docs

Connecting to Dameng server

The Document Server has several variables, DB_TYPE, DB_HOST, DB_USER, DB_NAME, DB_PORT, that allow you to customize your database connection. However, currently only MYSQL/MariaDB and PostgreSQL are supported officially.

To connect DamengDb, modify the entry point script and add connection conditions and parameters to the initialization entry point script of the Document Server image:

  1. git clone https://github.com/ONLYOFFICE/Docker-DocumentServer.git
  2. cd Docker-DocumentServer/tests/damengdb/
  3. Run the following command to build your own images:
    docker compose build
  4. Wait for the building process to complete and deploy the image with the following command:
    docker compose up -d 

After these changes have been added to the entry script, the document server is ready to initialize the connection to the database.

Create a simple compose file, in which you specify the necessary variables for the Document Server service:

  • DB_TYPE: damengdb
  • DB_HOST: Name (dns name) of the database service in compose file
  • DB_USER: Username
  • DB_NAME: Database name
  • DB_PORT: Service port with database

Mount the binary directory from the damengdb container so that the document server container has access to the disql utility. Please refer to the docker-compose.yml to learn more.

The database image must be available on hub.docker. We have uploaded the image v8.1.2.128 for your convenience: https://hub.docker.com/r/onlyoffice/damengdb

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags