feat: add Docker deployment support#71
Open
LeoCeasar wants to merge 1 commit intoringhyacinth:masterfrom
Open
Conversation
- Add Dockerfile and docker-compose.yml for containerized deployment - Add docker-entrypoint.sh to auto-initialize state/join-keys on first run - Add STAR_OFFICE_DATA_DIR and STAR_OFFICE_MEMORY_DIR env var support in app.py so runtime JSON files can be separated from the image via volume mount - Update .env.example with MEMORY_HOST_PATH for Docker usage - Update .gitignore to exclude data/ volume directory - Add .dockerignore to keep image lean - Update README with Docker deployment section - Add CLAUDE.md with project guidance for Claude Code - Add design doc: docs/plans/2026-03-09-docker-deployment-design.md Backward compatible: without env vars, DATA_DIR falls back to ROOT_DIR so existing python3 app.py usage is unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.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
Dockerfileanddocker-compose.ymlfor containerized deploymentdocker-entrypoint.shto auto-initializestate.jsonandjoin-keys.jsonon first runSTAR_OFFICE_DATA_DIR/STAR_OFFICE_MEMORY_DIRenv var support inapp.pyso runtime JSON files are separated from the image via volume mount.env.examplewithMEMORY_HOST_PATHfor Docker usageREADME.mdwith Docker deployment sectionCLAUDE.mdwith project guidance for Claude CodeBackward compatible: without env vars,
DATA_DIRfalls back toROOT_DIR, so existingpython3 app.pyusage is unchanged.Test plan
docker compose up -d --buildbuilds and starts successfullyhttp://127.0.0.1:19000loads the office UIPOST /set_statevia curl updates agent state correctlystate.jsonandjoin-keys.jsonin./data/python3 app.pydirectly (without Docker) still works as before🤖 Generated with Claude Code