-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.73 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.73 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
x-agentscope-common: &agentscope-common
build: .
environment:
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
OPENAI_API_KEY: ${OPENAI_API_KEY}
AGENTSCOPE_RUN_STORE_BACKEND: db
AGENTSCOPE_OTEL_ENABLED: ${AGENTSCOPE_OTEL_ENABLED:-1}
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318}
DATABASE_URL: postgresql://postgres:agentscope@postgres:5432/agentscope
volumes:
- ./outputs:/app/outputs
- ./config.yaml:/app/config.yaml
# Mount your agents directory into the container at /agents.
# Set AGENTS_DIR in your .env to point to your agents folder.
# Default points to the AgentScope tests/ folder (reference agents only).
- ${AGENTS_DIR:-./tests}:/agents
depends_on:
- postgres
- otel-collector
extra_hosts:
# Allows the container to reach services running on your Mac
- "host.docker.internal:host-gateway"
services:
otel-collector:
image: otel/opentelemetry-collector:0.111.0
restart: unless-stopped
command: ["--config=/etc/otelcol/config.yaml"]
ports:
- "4318:4318"
- "13133:13133"
volumes:
- ./otel-collector-config.yaml:/etc/otelcol/config.yaml:ro
postgres:
image: pgvector/pgvector:pg16
restart: unless-stopped
environment:
POSTGRES_PASSWORD: agentscope
POSTGRES_DB: agentscope
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
api:
<<: *agentscope-common
restart: unless-stopped
ports:
- "8000:8000"
command: uvicorn agentscope.api.main:app --host 0.0.0.0 --port 8000
dashboard:
<<: *agentscope-common
restart: unless-stopped
ports:
- "7860:7860"
command: python -m agentscope.dashboard.app
volumes:
pgdata: