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 |
|---|---|
|
The toolkit stack: server API, MCP server, PostgreSQL, GKB and retrieval workers, health monitor, database admin, NeMo Platform |
|
Templates that server processes |
|
The development overlay, its lifecycle overlay and |
|
A throwaway stack for CI and drills |
|
The production overlay and its ingress template |
|
The environment’s parts list |
|
Overlay that mounts an approved media source |
|
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:
deploy/compose.yml.Each listed part’s
compose/compose.yml, in list order.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
-ffile, so every overlay is written with paths that start atdeploy/, includingextends: {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 |
|
8100 |
MCP at |
|
8200 |
PostgreSQL |
|
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 |
|---|---|
|
|
|
|
|
|
|
The development seed step |
|
|
The generated Compose services lists every service per environment with the file that defines it.