Skip to content

feat: generalize Docker services#1

Merged
pkudinov merged 4 commits into
mainfrom
codex/generalize-docker-services
Apr 25, 2026
Merged

feat: generalize Docker services#1
pkudinov merged 4 commits into
mainfrom
codex/generalize-docker-services

Conversation

@pkudinov
Copy link
Copy Markdown
Contributor

@pkudinov pkudinov commented Apr 25, 2026

Summary

This replaces the Redis-specific Docker path with a generic dockerServices configuration model. Redis is now just another declared Docker service, and legacy type: "redis" env patches are removed as a breaking change.

What changed

  • Added generic Docker Compose-backed service lifecycle management from wt.config.json.
  • Starts configured Docker services only after the per-slot database has been created.
  • Groups per-slot services in Docker Desktop under projects like wt-<slot>-<repo>-<hash>.
  • Updated registry/output/remove/prune flows to track and clean up generic Docker projects.
  • Removed the old managed-redis module and Redis patch type.
  • Updated docs, skill guidance, and Docker integration tests for the new model.
  • Added a clean build step so deleted modules cannot linger in dist.
  • Added wt-local local build wiring and bumped the breaking-change version to 0.4.0.

Impact

Configs using type: "redis" must switch to type: "url" for REDIS_URL and declare Redis under dockerServices. Electric and Redis can now both live in wt.config.json instead of a checked-in Docker Compose file.

Validation

  • pnpm lint
  • pnpm build
  • pnpm test --runInBand
  • pnpm test:docker
  • Local smoke test in ~/sources/tokenbooks with Redis and Electric in slot 22

@pkudinov pkudinov changed the title [codex] generalize Docker services feat: generalize Docker services Apr 25, 2026
@pkudinov pkudinov marked this pull request as ready for review April 25, 2026 03:56
@pkudinov pkudinov merged commit 30d7957 into main Apr 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant