- Home
- Docs
- Installation and configuration
- Enterprise
- Docker version
- Connecting Dameng database to ONLYOFFICE Docs
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:
git clone https://github.com/ONLYOFFICE/Docker-DocumentServer.git
cd Docker-DocumentServer/tests/damengdb/
-
Run the following command to build your own images:
docker compose build
-
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.