Loading the documentation…

What lives on the host

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 /opt.

Names on your host

Every piece carries its own name on the host. Check the real names on your own machine: run these commands in the install directory.

bash
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.

PieceOn the hostNotes
The install directoryThe folder you deployed into, by default one under /optThe Installer's Compose file, its optional .env and the deployment folder live here
The Installer's backend containerThe backend service of the Installer's Compose fileThe screens, the API and the deploy engine. Reports healthy while it runs
The Installer's database containerThe postgres serviceThe Installer's own database, PostgreSQL. Not published to the host: reachable from the Installer's containers only
The one-shot migration containerThe backend-init serviceApplies database migrations, then exits with code 0
The Installer's update helperAppears only while the Installer updates itselfIts log stays after it exits: read it before the next update removes it. See Update the DataMind Installer
The Installer's secrets volumeOne of the two volumes; its name starts with the install directory's nameHolds the Installer's own secrets, each in its own file
The Installer's database volumeThe other volumeThe database's data directory: users, configuration, the audit trail and job history
The shared Docker networkOne network, shared with DataMind OSCreated 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 registryplatform.datamind.ai, or Azure with an Azure client secretWhere the Installer's and DataMind OS's images come from. See Secrets and registry access
The Installer's imagePulled from the registry aboveThe Installer's own update keeps the previous build tagged :rollback for its rollback
The Installer's release channelprodWhich published builds the Installer's own update follows. Leave it as it is
The Installer's session cookiesTwo cookies, set in your browser at sign-inSigning out ends the session. See Sign in, sessions and account

The files

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/.

PathWhat it isWritten by
docker-compose.ymlThe Installer's own stackYou or the install steps. Replaced by the Installer's own update
docker-compose.yml.pre-updateThe previous Compose file, kept for the update's rollbackThe Installer's own update, just before it switches
.self-update-statusThe last Installer update's outcome: ok, rolled-back or failedThe Installer's own update
.envThe Installer's own settings. Optional: without it, the defaults on this page applyYou
deployment/docker-compose.ymlThe DataMind OS stack, as publishedThe Installer. Replaced by every DataMind OS update
deployment/.env.unified.templateThe DataMind OS settings template, as publishedThe Installer. Replaced by every DataMind OS update
deployment/.envThe settings DataMind OS runs withThe Installer. Rewritten on every save, install and update
deployment/.env.installer-imageThe Installer image the deployment's .env was last rebuilt forThe Installer, at startup
deployment/.stack-applied.jsonThe deployment files the host last applied, by their checksumThe Installer, after a full update or a Start succeeds
deployment/apply-memory-slices.shThe script that applies the memory limits on the hostThe Installer. Downloaded with each deploy and replaced by every update
deployment/docker-compose.override.ymlYour own changes to the DataMind OS stackYou only. The Installer adds it to every Compose command when it exists

deployment/.env 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/docker-compose.yml, deployment/.env.unified.template and deployment/.env 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.

Important

Put changes to the DataMind OS stack in deployment/docker-compose.override.yml. A hand edit to a file the Installer writes is replaced at the next update or save.

Protect deployment/.env as Security describes. What to back up is on Backup and restore.

The Installer's own settings

The Installer's own settings live in .env, beside its Compose file. The file is optional: without it, the defaults below apply.

Settings you can change in .env

VariableDefaultWhat it controls
VERSIONLeave unsetThe image tag the Installer runs. See VERSION and the Installer's own update
SWAGGER_ENABLEDofftrue or 1 serves the API description at /api/docs
TZUTCThe time zone the Installer's containers log in
JWT_ACCESS_EXPIRY1hHow long an access token lives. The example .env published with the Installer sets 30m
JWT_REFRESH_EXPIRY7dHow long a browser stays signed in without activity
PLATFORM_API_KEYNot setThis 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_HOSTplatform.datamind.aiThe registry gateway used with the key. Leave it as it is
DOCKER_SOCK/var/run/docker.sockThe host's Docker socket, mounted into the Installer. A rootless host uses /run/user/<uid>/docker.sock; find the UID with id -u
POSTGRES_USERpostgresThe database role. Leave it as it is
POSTGRES_DATABASE_NAMESet at installThe Installer's database name. Leave it as it is

Settings fixed in the Compose file

The Compose file's environment: block sets these and overrides .env: POSTGRES_HOST (postgres), POSTGRES_PORT (5432), DEPLOYMENT_DIR (/usr/src/app/deployment), 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.

Secrets read from the volume

On every start the Installer reads these values from the secrets volume. A value in .env is overwritten.

SecretFileCreated byWhat it is
The session signing keyIts own file in the volumeThe Installer, on first startThe session signing key
The encryption keyIts own file in the volumeThe Installer, on first startThe key that encrypts stored secrets
The database passwordIts own file in the volumeThe database container, on first startThe Installer's database password
The install identityIts own file in the volumeThe Installer, on first startThis install's identity, which DataMind OS signs its license check-ins with. It also reaches deployment/.env

If one of these files goes missing:

File missingEffect
The database password fileThe 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 fileA new key is generated and everyone is signed out
The encryption key fileA 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 fileThe Installer restores it from deployment/.env. 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

VERSION and the Installer's own update

The Installer's own update always moves to the newest published build on its release channel. It never writes VERSION to .env.

Your .envWhat happens
No VERSIONEvery update and every docker compose command runs the newest published build
VERSION pinned to a tagThe 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.

Change a setting

Edit .env beside the Installer's Compose file, then recreate the Installer from the install directory:

bash
docker compose up -d backend

Check it worked. The backend container shows (healthy), and printenv prints the value you set.

bash
docker compose ps
docker compose exec backend printenv JWT_ACCESS_EXPIRY

Questions, answered

What are the Installer's containers called on the host?

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.

Does a DataMind OS update overwrite my changes?

It replaces the deployment's published Compose file and template, and rewrites deployment/.env. Your override file, your .env and the volumes are kept.

Can I set the session signing key or the database password in .env?

No. The Installer reads both from its secrets volume on every start, and a value in .env is overwritten. Remove them if they are there.

How do I sign every user out of the Installer at once?

Delete the session signing key file from the secrets volume and restart the backend: a new signing key is generated, and every session ends.

bash
docker compose exec backend rm /usr/src/app/secrets/<session signing key file>
docker compose restart backend

Do I need the .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.

Should I set 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.

What happens if a deployment file is deleted?

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.

What is the shared Docker network for?

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.