Articles with the tag:
Close
Changelog
Close
Try in the cloud
Try in the cloud
Help Center
ONLYOFFICE Docs

Connecting Dameng database to ONLYOFFICE Docs

The current guide suggests that a test bench has already been implemented in a separate release/v8.1.0 branch: https://github.com/ONLYOFFICE/Docker-DocumentServer/tree/release/v8.1.0/tests/damengdb

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. Add new db type:
    https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/release/v8.1.0/run-document-server.sh#L176
  2. Add the function of remote database creation:
    https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/release/v8.1.0/tests/damengdb/damengdb.Dockerfile#L36-L45

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.

Running a stand

To start the stand, execute the following commands:

  1. git clone --single-branch --branch release/v8.1.0 https://github.com/ONLYOFFICE/Docker-DocumentServer.git
  2. cd Docker-DocumentServer/tests/damengdb/
  3. docker compose build
  4. docker compose up -d
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
Download Host on your own server Available for
Docker, Windows and Linux
You Might Also Like This:
Close