Commit ed1be52c authored by Jean-Pierre Thomasset's avatar Jean-Pierre Thomasset

2504 - Add documentation for database customization

parent 4ae53876
.. _database_container:
.. _database_creation:
Creation and Initialization
Starting from the Callisto version, the database on the **XiVO PBX** and **all mediaservers** is started inside a docker container based on custom image.
On first startup the database will be initialized and the required structure and data will be created inside a host mounted folder ``/var/lib/postgresql/11/main/``.
.. _database_configuration:
Custom database configuration
The database image contains a default postgres configuration and some specific defaults required by our application. The postgres default configuration is located in ``/var/lib/postgresql/11/main/postgresql.conf`` and our custom defaults are in ``/var/lib/postgresql/11/main/conf.d/00-xivo-default.conf``. Do not change these files! If you need to change some parameters, create another file in ``/var/lib/postgresql/11/main/conf.d/`` prefixed with a number like ``01`` or upper and with a ``.conf`` extension. This file will be loaded after all defaults and can override any parameter.
Sample configuration
Here is an example to increase the default number of concurrent connection to the database:
max_connections = 300
......@@ -8,6 +8,7 @@ System
DHCP Server <dhcp/dhcp>
Mail <mail/mail>
Network <network/network>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment