feat(docker): add worker env vars and auto-generate secrets#253
Merged
Conversation
- Add INTERNAL_SERVICE_TOKEN for backend/worker internal auth - Add STUDIO_API_BASE_URL for worker→backend API calls - Add prod-init recipe to auto-generate secrets - Update prod commands to use docker/.env file - Add documentation header to docker-compose.full.yml - Add docker/.env to .gitignore Required for GHCR-based deployments where worker needs to communicate with backend for MCP registry and run dispatching. Signed-off-by: Aseem Shrey <LuD1161@users.noreply.github.com>
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
just prod-initrecipe to auto-generate secretsprod-initwhen runningprod start-latestorprod-imagesif secrets don't existChanges
Missing Environment Variables (docker-compose.full.yml)
INTERNAL_SERVICE_TOKEN: Service-to-service auth between backend/workerSTUDIO_API_BASE_URL: Worker→backend API URL (http://backend:3211/api/v1)New Justfile Recipe
just prod-init: Generates secure random secrets and saves todocker/.envAuto-initialization
just prod start-latestandjust prod-imagesnow auto-runprod-initifdocker/.envdoesn't existWhy This Is Needed
Without these env vars, workflows would fail with:
INTERNAL_SERVICE_TOKEN env var must be setCannot POST /internal/runs(404 errors)Test Plan
just prod-initgenerates valid secrets