Skip to content

Add Docker-managed database connections#135

Merged
amalshaji merged 9 commits into
mainfrom
codex/docker-managed-databases
Jul 19, 2026
Merged

Add Docker-managed database connections#135
amalshaji merged 9 commits into
mainfrom
codex/docker-managed-databases

Conversation

@amalshaji

@amalshaji amalshaji commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • create persistent PostgreSQL 17, Redis 7, and ClickHouse 25.8 databases through Docker, wait for engine-specific readiness, save a DBcooper connection, and expose a copyable connection string
  • discover and link compatible containers from the current Docker context, including recreated Docker Compose services, with credentials detected from standard environment variables and *_FILE secrets
  • start, stop, and restart linked containers while preserving containers and data by default on app quit or connection deletion
  • keep connection/link writes atomic and Docker commands bounded, with safe identity-based cleanup for containers created by DBcooper
  • document supported Docker engines, linking requirements, lifecycle behavior, and explicit data deletion

Testing

  • bun run check (34 frontend tests, TypeScript, ESLint, production build)
  • bun run build in docs/
  • cargo test --lib (25 tests)
  • cargo check
  • cargo clippy --lib (passes with 32 existing warnings outside the Docker modules)
  • rustfmt --check --edition 2021 src/docker/cli.rs src/docker/model.rs
  • real clickhouse/clickhouse-server:25.8-alpine verification: authenticated readiness, HTTP query, and named-volume persistence across stop/start
  • git diff --check origin/main...HEAD

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 19, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
dbcooper 2ceca27 Commit Preview URL

Branch Preview URL
Jul 19 2026, 08:28 PM

@amalshaji
amalshaji merged commit 79a6880 into main Jul 19, 2026
2 checks passed
@amalshaji
amalshaji deleted the codex/docker-managed-databases branch July 19, 2026 21:45
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