Compose files#

A stack is the toolkit’s deploy/compose.yml, the parts’ services and one environment overlay. deploy/compose_files.py assembles them from the environment’s parts list.

What is in the folder#

Path

Contents

deploy/compose.yml

The toolkit stack: server API, MCP server, PostgreSQL, GKB and retrieval workers, health monitor, database admin, NeMo Platform

deploy/templates.yml

Templates that server processes extends; never passed with -f

deploy/development/

The development overlay, its lifecycle overlay and development.env

deploy/disposable/

A throwaway stack for CI and drills

deploy/production/

The production overlay and its ingress template

deploy/<environment>/parts.yaml

The environment’s parts list

deploy/media.yml

Overlay that mounts an approved media source

deploy/gateway-poc.yml, deploy/embedding-fixture.yml

Opt-in local gateway and synthetic embedding fixture

Each optional part keeps its services in <part>/compose/compose.yml, where <part> is packs/<name> or reference/<area>. The folder mirrors deploy/: a file such as <part>/compose/production/compose.yml holds the part’s settings for deploy/production/compose.yml. A file in deploy/ never names a part’s service, so a stack still renders when a part is missing.

Assemble a stack#

From the repository root:

python3 deploy/compose_files.py development \
  deploy/development/compose.yml

The command prints -f arguments, one per line, in this order:

  1. deploy/compose.yml.

  2. Each listed part’s compose/compose.yml, in list order.

  3. Each overlay you name, followed by the listed parts’ mirrors of it.

Use --require to fail when a listed part is missing, and --absolute for absolute paths. Without --require a missing part is skipped with a note. The script uses only the standard library.

Validate a stack#

files=$(python3 deploy/compose_files.py development \
  deploy/development/compose.yml)
docker compose \
  --env-file deploy/development/development.env \
  $files config --quiet

config --quiet prints nothing when the composition is valid. Run config --services to list the services it defines. ci/validate.sh compose renders every stack offline. The toolkit stack alone validates with --env-file deploy/disposable/disposable.env -f deploy/compose.yml.

Rules for overlays#

  • Docker Compose resolves relative paths from the folder of the first -f file, so every overlay is written with paths that start at deploy/, including extends: {file: templates.yml}.

  • A part’s overlay joins deploy/compose.yml; the console’s own file runs alone and its paths start at its folder.

Default ports#

deploy/compose.yml publishes only the entry points, on loopback by default. The development stack overrides them (Run the local stack).

Entry point

Variable

Default

Toolkit API

GEONEMO_SERVICES_PORT

8100

MCP at /mcp

GEONEMO_MCP_PORT

8200

PostgreSQL

GEONEMO_POSTGRES_PORT

5432

The console and Phoenix are published by the environment overlays; see the generated Compose services.

Profiles#

A service without a profile starts with the stack. Profiled services start only when asked.

Profile

Service or use

administration

database-admin, for host-local administration

gkb-backup

gkb-backup, which writes GKB backups to S3-compatible storage

retrieval

retrieval-worker

seed

The development seed step

agent-monitoring

agent-monitor and dcgm-exporter

The generated Compose services lists every service per environment with the file that defines it.