-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (104 loc) · 2.18 KB
/
docker-compose.yml
File metadata and controls
113 lines (104 loc) · 2.18 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
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3.8'
services:
# REST API server (central hub)
api:
image: python:3.11-slim
working_dir: /app
volumes:
- .:/app
- ~/.a2a:/root/.a2a
environment:
- A2A_PROJECT=docker
- A2A_HOST=0.0.0.0
- A2A_PORT=5000
ports:
- "5000:5000"
command: python a2a_server.py --project docker --host 0.0.0.0
depends_on:
- postgres
networks:
- a2a-network
# Python agent
python-worker:
image: python:3.11-slim
working_dir: /app
volumes:
- .:/app
- ~/.a2a:/root/.a2a
environment:
- A2A_PROJECT=docker
- PYTHONUNBUFFERED=1
command: python examples/task_coordinator_agent.py
depends_on:
- api
networks:
- a2a-network
# Node.js agent
nodejs-worker:
image: node:18-alpine
working_dir: /app
volumes:
- .:/app
- ~/.a2a:/root/.a2a
environment:
- A2A_PROJECT=docker
- NODE_ENV=production
command: node examples/nodejs_coordinator.js
depends_on:
- api
networks:
- a2a-network
# Go agent (if available)
# go-worker:
# build:
# context: .
# dockerfile: Dockerfile.go
# working_dir: /app
# volumes:
# - .:/app
# - ~/.a2a:/root/.a2a
# environment:
# - A2A_PROJECT=docker
# command: ./go_worker
# depends_on:
# - api
# networks:
# - a2a-network
# Rust agent (if compiled)
# rust-worker:
# build:
# context: .
# dockerfile: Dockerfile.rust
# working_dir: /app
# volumes:
# - ~/.a2a:/root/.a2a
# environment:
# - A2A_PROJECT=docker
# command: /app/task_worker
# depends_on:
# - api
# networks:
# - a2a-network
# Optional: PostgreSQL for persistence
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=a2a
- POSTGRES_PASSWORD=a2a
- POSTGRES_DB=a2a_bus
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- a2a-network
# Optional: Redis for caching
redis:
image: redis:7-alpine
ports:
- "6379:6379"
networks:
- a2a-network
volumes:
postgres_data:
networks:
a2a-network:
driver: bridge