forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (96 loc) · 2.82 KB
/
Copy pathdocker-compose.yml
File metadata and controls
100 lines (96 loc) · 2.82 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Use ./up.sh instead of docker compose directly —
# it resolves STACK_NAME + MEMORY_ID and generates a local aws-exports.json.
#
# Requires a deployed AWS stack. See ../docs/LOCAL_DEVELOPMENT.md.
#
# Frontend hot reloads on save (volume mount + Vite).
# Agent changes require: docker compose up --build agent
services:
agent:
build:
context: ..
dockerfile: agents/${AGENT:-langgraph}-single-agent/Dockerfile
platforms:
- linux/arm64
ports:
- "8080:8080"
environment:
- MEMORY_ID=${MEMORY_ID}
- STACK_NAME=${STACK_NAME}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-us-east-1}
- AWS_REGION=${AWS_DEFAULT_REGION:-us-east-1}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
- AGUI_ENABLED=true
- GATEWAY_CREDENTIAL_PROVIDER_NAME=${STACK_NAME}-runtime-gateway-auth
- OTEL_SDK_DISABLED=true
develop:
watch:
- action: sync+restart
path: ../agents/${AGENT:-langgraph}-single-agent
target: /app
ignore:
- __pycache__/
- "*.pyc"
- action: sync+restart
path: ../agents/utils
target: /app/utils
ignore:
- __pycache__/
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8080/ping', timeout=2)",
]
interval: 30s
timeout: 3s
retries: 3
start_period: 15s
networks:
- agentcore-network
bridge:
build:
context: ../infra-cdk/lambdas/copilotkit-runtime
dockerfile: ../../../docker/Dockerfile.bridge.dev
ports:
- "3001:3001"
environment:
- AGENTCORE_AG_UI_URL=http://agent:8080/invocations
- PORT=3001
- OTEL_SDK_DISABLED=true
- COPILOTKIT_LICENSE_TOKEN=${COPILOTKIT_LICENSE_TOKEN}
- INTELLIGENCE_API_KEY=${INTELLIGENCE_API_KEY}
- INTELLIGENCE_API_URL=${INTELLIGENCE_API_URL:-http://localhost:4201}
- INTELLIGENCE_GATEWAY_WS_URL=${INTELLIGENCE_GATEWAY_WS_URL:-ws://localhost:4401}
depends_on:
agent:
condition: service_healthy
networks:
- agentcore-network
frontend:
build:
context: ../frontend
dockerfile: ../docker/Dockerfile.frontend.dev
ports:
- "3000:3000"
volumes:
- ../frontend:/app
- /app/node_modules
environment:
- NODE_ENV=development
- VITE_COPILOTKIT_THREADS_ENABLED=${COPILOTKIT_LICENSE_TOKEN:+true}
depends_on:
bridge:
condition: service_started
networks:
- agentcore-network
networks:
agentcore-network:
driver: bridge