Connecting Dameng database to ONLYOFFICE Docs
+-
+
Connecting to Dameng server
+The Document Server has several variables, DB_TYPE DB_HOST DB_USER DB_PASSWORD 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:
+-
+
-
+ Add new db type:
+
https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/feature/damengdb-compose/run-document-server.sh#L152C4-L154C9
+
+ -
+ Add the function of remote database creation:
+
https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/feature/damengdb-compose/run-document-server.sh#L423C1-L432C2
+
+
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_PASS: User password +
- 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:
+-
+
git clone -b feature/damentdb-compose https://github.com/ONLYOFFICE/Docker-DocumentServer.git
+ cd Docker-DocumentServer/tests/damengdb/
+ docker compose up –d
+