You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-detect database driver in dbinit.sh instead of hardcoding pgsql
dbinit.sh now reads DBDriver from netxmsd.conf to support MariaDB/MySQL
without manual workarounds. For PostgreSQL, a new NETXMS_PG_TYPE env var
allows selecting between pure PostgreSQL (default) and TimescaleDB.
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,23 @@ services:
106
106
- KEYSTORE_PASSWORD=your_keystore_password
107
107
```
108
108
109
+
## Database Driver Selection
110
+
111
+
The database initialization script (`dbinit.sh`) automatically detects the database driver from the `DBDriver` setting in `netxmsd.conf`. Supported drivers:
112
+
113
+
- **PostgreSQL** (`pgsql`): default, no additional configuration needed
114
+
- **TimescaleDB**: set environment variable `NETXMS_PG_TYPE=tsdb` on the `init` service
115
+
- **MariaDB/MySQL** (`mariadb` or `mysql`): set `DBDriver` in `netxmsd.conf` accordingly and swap the database image in `compose.yaml`
0 commit comments