container-services
Fixed Docker endpoints for Postgres, Redis, Mongo, and S3 with ephemeral-data discipline. Use when connecting to project services locally or in CI.
- License 许可
- MIT
- 最近更新
- 2026-10-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- container-services
- license
- MIT
- description
- Fixed Docker endpoints for Postgres, Redis, Mongo, and S3 with ephemeral-data discipline. Use when connecting to project services locally or in CI.
- compatibility
- opencode
03 SKILL.md 正文
What I do
- Connect to real services in CI without per-project wiring.
When to use me
Use when your task touches the database, cache, queue, documents, or object storage.
Endpoints (preset CI services; custom services add their own env)
- PostgreSQL:
DATABASE_URL=postgres://postgres:postgres@localhost:5432/app - Redis:
REDIS_URL=redis://localhost:6379 - MongoDB:
MONGO_URL=mongodb://localhost:27017/app - S3 (Adobe S3Mock in CI, MinIO/R2/AWS-compatible):
S3_ENDPOINT=http://localhost:9090, keytest/ secrettest, bucket fromS3_BUCKET(create it via SDK — buckets start empty), regionus-east-1. - Custom services: read their documented
envkeys the same way (exported automatically).
Rules
- Read env, hardcode nothing: all connection values come from environment with these Docker defaults (same locally and in CI).
- Ephemeral data: containers reset every run — seed fixtures inside the task/test setup; never assume rows, buckets, or keys pre-exist (create the bucket if missing).
- Docker-always, fail fast: there are no fallback data layers. If a declared service is unreachable, fail with a clear error — never add SQLite/InMemory adapters.
- Missing a container? Provision + request it:
docker run -d --name <name> -p <host:container> <image:pinned-tag>for your own run, then append{ "name", "image", "env?", "ports?" }toworkspace/services.request.jsonso the orchestrator auto-adopts it into the canonical compose (durable from the next tick). Pinned tags only, throwaway defaults only, and document the env inworkspace/CONTRACTS.md. - No production credentials: the Docker defaults are throwaway; production uses secret-managed values via the same env names.
- Key-in pattern (third-party APIs): S3 above is the template — sandbox/emulator in CI, live service in production, IDENTICAL env names, config-only swap. Apply it to every external integration: vendor sandbox or emulator sidecar (declared as a custom service) for tests, owner-provided live keys afterwards, KEY-IN steps documented. Hand-written fakes only when no sandbox exists, always with a conformance test.
- Containerized toolchains allowed: the runner pre-provisions the six product toolchains (fast path), but any task MAY run its build/test inside a pinned toolchain image instead —
docker run --rm -v $(pwd):/w -w /w <image:pinned-tag> <toolchain command>— when the runner lacks the toolchain (e.g. Android SDK, Xcode-adjacent, exotic compilers) or the version must be exact. Paste real output; pinned tags only, same as services.
04 同仓库更多 Skills
demo-skill
暂无简介
web-accessibility
WCAG 2.2 AA practice for keyboard, screen reader, contrast, and motion. Use when building or auditing user interfaces.
ui-conventions
Black/white token system, accessible components, and copy rules for frontend work. Use when building screens, components, or design tokens.
test-evidence
stack-toolchain test matrices, concurrency cases, and TASK_PROGRESS proof format for QA verification. Use when writing tests or proving deliverables work.
test-driven-development
RED-GREEN-REFACTOR cycle for new behavior. Use when implementing any feature, fix, or endpoint before writing production code.
systematic-debugging
Reproduce-isolate-fix-verify loop for defects and flaky behavior. Use when facing a bug, test failure, or unexpected behavior.