Add ecosystem-mode compose overrides for fluent-ai integration#5
Merged
Merged
Conversation
- Mount fluent-api/scripts into the api container - Override FLUENT_AI_URL to reach the ai service by name on the shared network - Override MIGRATIONS_DATABASE_URL to match the platform DB's migrations role password - Point UV_CACHE_DIR at the writable /tmp tmpfs and bump /tmp size to 256m
Author
|
Paired with fluent-api PR eten-tech-foundation/fluent-api#181 — this compose change is the prerequisite that lets fluent-api authenticate against fluent-ai (and brings the |
kaseywright
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds ecosystem-mode Compose overrides so the
fluent-platformstack wires up correctly when runningfluent-api(Node backend) together withfluent-ai(the new Python AI backend) on the shared Compose network.Changes to
compose.yamlfluent-api/scriptsinto theapicontainer (read-only), alongside the existing source mounts.FLUENT_AI_URL: http://ai:8200on theapiservice — reachfluent-aiby its service name on the shared network, overriding the standalonefluent-api/.envvalue (http://localhost:8200).FLUENT_AI_KEYis intentionally not overridden so the caller key stays in lockstep withfluent-ai'sai_api_keysseed.MIGRATIONS_DATABASE_URLoverride for theaiservice to use themigrations:postgrescredentials that the platform DB'sdb/init/init-db.sqlactually assigns. The standalonefluent-ai/.envdefault (migrations:password) causes an asyncpgInvalidPasswordErroron the platform DB and theaicontainer exits at the Alembic step.UV_CACHE_DIR: /tmp/.uv-cacheinstead of/app/.cache/uv, which lands on thenoexectmpfs and breaksuvcache init ("Permission denied"). Also bumps the/tmptmpfs from 64m to 256m to fit the cache.This PR is a prerequisite for the corresponding
fluent-apiPR's tests to run cleanly. Without these Compose overrides, the connection betweenfluent-apiandfluent-aifails to authenticate, so thefluent-apiintegration tests cannot pass.