Feature flags setup guide
On-Premises – Docker
Configure local feature flags (Docker on‑prem)
On‑prem Docker deployments can load feature flags from a local JSON file.
1. Create the feature flag file on the host
On the Docker host, create a working directory for Ninox config, for example:
/opt/ninox/Copy the feature flag template from the server release into that directory and name it
feature-flags.json(For example, from template.feature-flags.json → feature-flags.json.)Edit
feature-flags.jsonand configure your flags, for example:{ "SomeFeature": { "enabled": true } }Always use the template from the same Ninox server version, because available flags may change between releases.
2. Mount the file into the container and update server-config.json
Ensure your
server-config.json(on the host) contains:"featureFlags": { "source": "local", "file": "/usr/local/nxdb/feature-flags.json" }When starting the container, mount both
server-config.jsonandfeature-flags.json, for example:docker container run -d \ --name nxdb \ -v NX-DATA:/var/nxdb \ -v /opt/ninox/server-config.json:/usr/local/nxdb/server-config.json:rw \ -v /opt/ninox/feature-flags.json:/usr/local/nxdb/feature-flags.json:rw \ -p 80:8080 ninoxdatabase/ninox-on-premiseKey points:
Host file:
/opt/ninox/feature-flags.jsonIn-container path:
/usr/local/nxdb/feature-flags.jsonThis path must match the
filevalue inserver-config.json.
3. Restart and verify flags are loaded
Whenever you change feature-flags.json or server-config.json:
Restart the container:
docker compose restart nxdbor, if using plain Docker:
docker container restart nxdb
On-Premises – Windows
Configure local feature flags (Windows on‑prem)
On‑prem installations can read feature flags from a local JSON file.
1. Create the feature flag file
Open the Ninox installation folder, for example:
C:\Program Files\NinoxCopy the file
template.feature-flags.jsonand rename the copy tofeature-flags.jsonEdit
feature-flags.jsonand set your flags, for example:{ "SomeFeature": { "enabled": true } }Always use the template from the same Ninox server version, because flags can be added or removed between releases.
2. Point the server to the local file
In the same folder, open
server-config.json.Add or update the
featureFlagsblock, for example:"featureFlags": { "source": "local", "file": "feature-flags.json" }The
filevalue can be an absolute path (for exampleC:\\Program Files\\Ninox\\feature-flags.json) or a path relative to the Ninox server working directory.
3. Restart and verify
After saving
feature-flags.jsonandserver-config.json, open Task Manager.Go to the Services tab, right‑click the Ninox service, and select Restart.
ℹ️ Note: JSON feature flag support is available in Ninox On‑Premises version 3.18.17 and later.
