Loading the documentation…
One host runs two stacks: the DataMind Installer's own Compose stack and the DataMind OS deployment.
This page lists what the Installer keeps on the host, what an update replaces, and how to change its
own settings. Paths on this page are relative to the install directory, the folder you deployed
into; the install steps use one under /.
Every piece carries its own name on the host. Check the real names on your own machine: run these commands in the install directory.
docker compose ps -a docker volume ls docker network ls
The first lists the Installer's three containers beside their service names, the second lists the
volumes and the third the networks. The Installer's update helper also appears in docker ps -a
while it runs, and its exited container keeps the update's log.
| Piece | On the host | Notes |
|---|---|---|
| The install directory | The folder you deployed into, by default one under / | The Installer's Compose file, its optional . and the deployment folder live here |
| The Installer's backend container | The backend service of the Installer's Compose file | The screens, the API and the deploy engine. Reports healthy while it runs |
| The Installer's database container | The postgres service | The Installer's own database, PostgreSQL. Not published to the host: reachable from the Installer's containers only |
| The one-shot migration container | The backend-init service | Applies database migrations, then exits with code 0 |
| The Installer's update helper | Appears only while the Installer updates itself | Its log stays after it exits: read it before the next update removes it. See Update the DataMind Installer |
| The Installer's secrets volume | One of the two volumes; its name starts with the install directory's name | Holds the Installer's own secrets, each in its own file |
| The Installer's database volume | The other volume | The database's data directory: users, configuration, the audit trail and job history |
| The shared Docker network | One network, shared with DataMind OS | Created once, outside the stacks, before they start. Both stacks treat it as external, so neither deletes it out from under the other |
| The DataMind container registry | platform., or Azure with an Azure client secret | Where the Installer's and DataMind OS's images come from. See Secrets and registry access |
| The Installer's image | Pulled from the registry above | The Installer's own update keeps the previous build tagged :rollback for its rollback |
| The Installer's release channel | prod | Which published builds the Installer's own update follows. Leave it as it is |
| The Installer's session cookies | Two cookies, set in your browser at sign-in | Signing out ends the session. See Sign in, sessions and account |
Two sets of files sit on the host: the Installer's own, at the top of the install directory, and the
deployment's, under deployment/.
| Path | What it is | Written by |
|---|---|---|
docker-compose. | The Installer's own stack | You or the install steps. Replaced by the Installer's own update |
docker-compose. | The previous Compose file, kept for the update's rollback | The Installer's own update, just before it switches |
. | The last Installer update's outcome: ok, rolled-back or failed | The Installer's own update |
. | The Installer's own settings. Optional: without it, the defaults on this page apply | You |
deployment/ | The DataMind OS stack, as published | The Installer. Replaced by every DataMind OS update |
deployment/ | The DataMind OS settings template, as published | The Installer. Replaced by every DataMind OS update |
deployment/ | The settings DataMind OS runs with | The Installer. Rewritten on every save, install and update |
deployment/ | The Installer image the deployment's . was last rebuilt for | The Installer, at startup |
deployment/ | The deployment files the host last applied, by their checksum | The Installer, after a full update or a Start succeeds |
deployment/ | The script that applies the memory limits on the host | The Installer. Downloaded with each deploy and replaced by every update |
deployment/ | Your own changes to the DataMind OS stack | You only. The Installer adds it to every Compose command when it exists |
deployment/ carries a generated block of memory settings between two marker comment lines: one
starts with # >>>, the other with # <<<. Above its rows, comment lines record how the block was
made: when it was generated, the host and its class, the reservation budget, and whether anything
was scaled. When hand-edited values are in play, one line lists them:
# hand-edited, dependent rows recalculated from them: <codes>. The block sits between the file's
plain settings and the lines that reference other values. It is rewritten on every save, install and
update; Memory limits and host sizing explains the values.
Before every job, the Installer checks that deployment/,
deployment/ and deployment/ exist, and restores only the files that are
missing. It restores them only after the Installer-first check passes, so a pending Installer update
can refuse the restore first. At startup it runs the same check when a DataMind Platform API key or
an Azure client secret is stored. If a file cannot be restored, the action is refused with
Missing deployment files: <names>. When the deployment's own files are missing, Stop and
Terminate still work: the Installer stops the running containers by their compose project label,
and the job warns
Deployment files are missing, so the containers are stopped by their compose project label.
Put changes to the DataMind OS stack in deployment/. A hand edit to a
file the Installer writes is replaced at the next update or save.
Protect deployment/ as
Security describes. What
to back up is on Backup and restore.
The Installer's own settings live in ., beside its Compose file. The file is optional: without
it, the defaults below apply.
. env| Variable | Default | What it controls |
|---|---|---|
VERSION | Leave unset | The image tag the Installer runs. See VERSION and the Installer's own update |
SWAGGER_ENABLED | off | true or 1 serves the API description at / |
TZ | UTC | The time zone the Installer's containers log in |
JWT_ACCESS_EXPIRY | 1h | How long an access token lives. The example . published with the Installer sets 30m |
JWT_REFRESH_EXPIRY | 7d | How long a browser stays signed in without activity |
PLATFORM_API_KEY | Not set | This server's License Key. It seeds the key on the first start only, when none is stored: the key is checked, then stored encrypted. Changing it later has no effect: replace the key in Configuration. After the Installer exchanged a company API key, this line still holds the old key, which is ignored |
PLATFORM_REGISTRY_HOST | platform. | The registry gateway used with the key. Leave it as it is |
DOCKER_SOCK | / | The host's Docker socket, mounted into the Installer. A rootless host uses /; find the UID with id -u |
POSTGRES_USER | postgres | The database role. Leave it as it is |
POSTGRES_DATABASE_NAME | Set at install | The Installer's database name. Leave it as it is |
The Compose file's environment: block sets these and overrides .: POSTGRES_HOST
(postgres), POSTGRES_PORT (5432), DEPLOYMENT_DIR (/), TMPDIR,
NODE_OPTIONS, the image and channel settings, AZURE_TENANT_ID and AZURE_CLIENT_ID. The Azure
client secret and the DataMind Platform API key are entered on the screen, or the key is read from
PLATFORM_API_KEY on the first start, and stored encrypted in the Installer's database.
The Installer's own containers run with memory caps and no swap: 1 GiB for the backend container and 512 MiB for the database container. A container that goes over its cap is killed.
On every start the Installer reads these values from the secrets volume. A value in . is
overwritten.
| Secret | File | Created by | What it is |
|---|---|---|---|
| The session signing key | Its own file in the volume | The Installer, on first start | The session signing key |
| The encryption key | Its own file in the volume | The Installer, on first start | The key that encrypts stored secrets |
| The database password | Its own file in the volume | The database container, on first start | The Installer's database password |
| The install identity | Its own file in the volume | The Installer, on first start | This install's identity, which DataMind OS signs its license check-ins with. It also reaches deployment/ |
If one of these files goes missing:
| File missing | Effect |
|---|---|
| The database password file | The database container writes a new password that the existing database does not accept, so the Installer cannot connect and restarts in a loop. The data stays intact. Restore the file from your backup; see Troubleshooting |
| The session signing key file | A new key is generated and everyone is signed out |
| The encryption key file | A new key is generated, and the stored secrets can no longer be read. Restore the file from your backup. See Backup and restore |
| The install identity file | The Installer restores it from deployment/. If that copy is gone too, the install gets a new identity: the platform refuses its License Key, and DataMind has to reset the key's binding. See Secrets and registry access |
The Installer's own update always moves to the newest published build on its release channel. It
never writes VERSION to ..
Your . | What happens |
|---|---|
No VERSION | Every update and every docker compose command runs the newest published build |
VERSION pinned to a tag | The update still moves to the newest build for that one command. The next docker compose up -d backend returns to your pinned tag |
Leave VERSION unset and update from the Installer pill:
Update the DataMind Installer.
Edit . beside the Installer's Compose file, then recreate the Installer from the install
directory:
docker compose up -d backend
Check it worked. The backend container shows (healthy), and printenv prints the value you
set.
docker compose ps docker compose exec backend printenv JWT_ACCESS_EXPIRY
Run docker compose ps -a in the install directory: it lists the three containers under their real
names, beside the backend, postgres and backend-init services, and docker volume ls lists
the volumes. Each piece is described under Names on your host.
It replaces the deployment's published Compose file and template, and rewrites deployment/.
Your override file, your . and the volumes are kept.
. env?No. The Installer reads both from its secrets volume on every start, and a value in . is
overwritten. Remove them if they are there.
Delete the session signing key file from the secrets volume and restart the backend: a new signing key is generated, and every session ends.
docker compose exec backend rm /usr/src/app/secrets/<session signing key file> docker compose restart backend
. env file?No. It is optional: without it, the defaults on this page apply. Create it when you need to change one of the settings.
VERSION?No. Leave it unset. The Installer's own update always moves to the newest published build; a
pinned value only affects your own docker compose commands. See
VERSION and the Installer's own update.
The Installer restores it. Before every job it checks the deployment's three files and restores the
ones that are missing; files that are present are left alone. If a restore fails, the action is
refused with Missing deployment files: <names>. At startup the check runs when a DataMind Platform
API key or an Azure client secret is stored.
The Installer and DataMind OS reach each other over one Docker network, created once, outside the stacks, before they start. Both stacks treat it as external, so neither one deletes it out from under the other.