Files
copilotkit__copilotkit/showcase/docker-compose.dev.yml
Ran Shem Tov 0e5b2189e7 feat(showcase): add strands-typescript integration with base demos
Add a new node/TypeScript-backed AWS Strands showcase integration at
showcase/integrations/strands-typescript.

Backend: a node/TS agent server (src/agent/) built on @strands-agents/sdk
`Agent`/`tool` wrapped in @ag-ui/aws-strands `StrandsAgent` and served via
@ag-ui/aws-strands/server (`createStrandsApp`/`addStrandsExpressEndpoint`),
modeled on the upstream ag-ui aws-strands TS example server and the
langgraph-typescript infra. A single shared agent at "/" serves most demos
(tools, shared state via toolBehaviors/stateContextBuilder, HITL,
sub-agents), with tool-free specialized agents mounted at /voice,
/byoc-hashbrown, /byoc-json-render. model-factory targets OpenAI chat
completions and honors OPENAI_API_KEY / OPENAI_BASE_URL so it works behind
the showcase aimock proxy. Node-based Dockerfile + entrypoint run the agent
server (:8000) alongside the Next.js frontend.

Frontend mirrors the strands (Python) sibling's demo set and the
langgraph-typescript conventions, with HttpAgent routes proxying to the TS
agent server.

Scope: base integration + standard demos only. A2UI / declarative-gen-ui /
a2ui-fixed-schema is intentionally excluded (no A2UI agents, routes, demos,
or deps) and layered on later.

Platform wiring (mirrors langgraph-typescript): docker-compose local/dev
services on host port 3119, local-ports.json, packages.json, slug-map.ts
(born-in-showcase), showcase_build.yml matrix + path filter + metadata,
shell-docs/dashboard registries, and a logo asset. The python strands
integration is untouched.
2026-06-19 17:38:02 +02:00

93 lines
3.7 KiB
YAML

# docker-compose.dev.yml — FAST DEV overlay for `showcase up --dev` / `showcase test --dev`.
#
# Layered ON TOP of docker-compose.local.yml. The base file already
# BIND-MOUNTS each integration's `./integrations/<slug>/src` into `/app/src`;
# this overlay adds the two things needed to turn that into a hot-reload dev
# loop WITHOUT an image rebuild:
#
# 1. Mounts the shared dev entrypoint (shared/dev/dev-entrypoint.sh) into
# the container at /app/dev-entrypoint.sh.
# 2. Overrides each integration's `command` to run that dev entrypoint, which
# launches the stack's NATIVE reloader against the bind-mounted source
# (uvicorn --reload for the Python agent, `next dev` for the frontend,
# `langgraph dev` for langgraph graphs — all file-watch hot reload).
#
# Everything else (image, env, network, aimock wiring, the control-plane /
# worker fleet) is inherited UNCHANGED from docker-compose.local.yml — only
# the integration runtime differs (source-mounted + auto-reload). The built-
# image mode (no overlay) remains the faithful/staging-equivalent default.
#
# Usage:
# showcase up <slug> --dev # bring the integration up in hot-reload mode
# showcase test <slug> --d5 --dev
#
# After it is up, edit any file under integrations/<slug>/src and the
# component reloads in place — watch `showcase logs <slug>` for the reload.
x-dev-overrides:
&dev-overrides # Run the bind-mounted source under hot reload instead of the baked image.
command: ["/bin/bash", "/app/dev-entrypoint.sh"]
# Dev-only: run as root so the file-watch reloaders can write the scratch
# files they need (`next dev` writes next-env.d.ts / .next under the
# root-owned /app; uvicorn --reload needs no writes). The production image
# runs as the unprivileged `app` user — this override is DEV-ONLY and never
# applies to the faithful built-image path.
user: root
services:
langgraph-python:
<<: *dev-overrides
volumes:
- ./integrations/langgraph-python/src:/app/src
- ./shared/dev/dev-entrypoint.sh:/app/dev-entrypoint.sh:ro
langgraph-typescript:
<<: *dev-overrides
volumes:
- ./integrations/langgraph-typescript/src:/app/src
- /app/src/agent/node_modules
- ./shared/dev/dev-entrypoint.sh:/app/dev-entrypoint.sh:ro
strands-typescript:
<<: *dev-overrides
volumes:
- ./integrations/strands-typescript/src:/app/src
- /app/src/agent/node_modules
- ./shared/dev/dev-entrypoint.sh:/app/dev-entrypoint.sh:ro
langgraph-fastapi:
<<: *dev-overrides
volumes:
- ./integrations/langgraph-fastapi/src:/app/src
- ./shared/dev/dev-entrypoint.sh:/app/dev-entrypoint.sh:ro
google-adk:
<<: *dev-overrides
volumes:
- ./integrations/google-adk/src:/app/src
- ./shared/dev/dev-entrypoint.sh:/app/dev-entrypoint.sh:ro
mastra:
<<: *dev-overrides
volumes:
- ./integrations/mastra/src:/app/src
- ./shared/dev/dev-entrypoint.sh:/app/dev-entrypoint.sh:ro
crewai-crews:
<<: *dev-overrides
volumes:
- ./integrations/crewai-crews/src:/app/src
- ./shared/dev/dev-entrypoint.sh:/app/dev-entrypoint.sh:ro
pydantic-ai:
<<: *dev-overrides
volumes:
- ./integrations/pydantic-ai/src:/app/src
- ./shared/dev/dev-entrypoint.sh:/app/dev-entrypoint.sh:ro
# next dev (unlike the baked `next start`) needs the source-side config
# files the production image does not ship — mount them read-only from the
# integration root so the frontend dev server boots.
- ./integrations/pydantic-ai/next.config.ts:/app/next.config.ts:ro
- ./integrations/pydantic-ai/tsconfig.json:/app/tsconfig.json:ro
- ./integrations/pydantic-ai/postcss.config.mjs:/app/postcss.config.mjs:ro