-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
65 lines (63 loc) · 2.39 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
65 lines (63 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Development overrides for compose.yaml
services:
agent-runtime:
build:
context: ./src/agent-runtime
dockerfile: Dockerfile
image: kartograph-agent-runtime:dev
profiles: ["build-only"]
api:
# Root required for Docker-out-of-Docker via mounted /var/run/docker.sock in dev
user: "0:0"
environment:
UV_CACHE_DIR: /tmp/uv-cache
HOST_UID: ${HOST_UID}
HOST_GID: ${HOST_GID}
KARTOGRAPH_EXTRACTION_RUNTIME_BACKEND: container
KARTOGRAPH_EXTRACTION_RUNTIME_CONTAINER_ENGINE: auto
KARTOGRAPH_EXTRACTION_RUNTIME_CONTAINER_NETWORK: kartograph_kartograph
KARTOGRAPH_EXTRACTION_RUNTIME_STICKY_IMAGE: kartograph-agent-runtime:dev
KARTOGRAPH_EXTRACTION_RUNTIME_API_BASE_URL: http://api:8000
KARTOGRAPH_EXTRACTION_RUNTIME_JOB_PACKAGE_WORK_DIR: /tmp/kartograph/job_packages
KARTOGRAPH_EXTRACTION_RUNTIME_SKILLS_DIR: ${PWD}/skills
KARTOGRAPH_EXTRACTION_RUNTIME_CONTAINER_RUN_UID: ${HOST_UID}
KARTOGRAPH_EXTRACTION_RUNTIME_CONTAINER_RUN_GID: ${HOST_GID}
# Vertex AI for Claude Agent SDK in sticky assistant containers
CLAUDE_CODE_USE_VERTEX: "1"
ANTHROPIC_VERTEX_PROJECT_ID: itpc-gcp-hcm-pe-eng-claude
CLOUD_ML_REGION: us-east5
KARTOGRAPH_GCLOUD_CONFIG_MOUNT: ${HOME}/.config/gcloud
volumes:
# Mount the entire app directory (minus venv) for hot-reload
- ./src/api:/app:z
- /app/.venv
# Shared with sibling sticky containers launched via the host Docker socket
- /tmp/kartograph/job_packages:/tmp/kartograph/job_packages
# Allow API process to launch sibling extraction runtime containers locally
- /var/run/docker.sock:/var/run/docker.sock
# Docker/Podman CLI from host (required for container runtime backend)
- ${DOCKER_BIN:-/usr/bin/docker}:/usr/bin/docker:ro
command:
- /bin/bash
- -c
- |
uv run fastapi dev main.py --host 0.0.0.0 --port 8000
dev-ui:
build:
context: ./src/dev-ui
dockerfile: Dockerfile
target: builder
volumes:
# Mount source for live editing
- ./src/dev-ui:/app:z
# Preserve container's node_modules (don't overwrite with host)
- /app/node_modules
# Writable dirs for Nuxt dev server
- /app/.nuxt
- /app/.output
environment:
- HOST=0.0.0.0
command: ["pnpm", "run", "dev"]
ports:
- "3000:3000"
- "24678:24678"