-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.57 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
services:
# ── Nexus Core ───────────────────────────────────────────────────
nexus:
build: .
container_name: nexus-core
ports:
- "9500:9500"
volumes:
- nexus-data:/app/data
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9500/health')"]
interval: 15s
timeout: 5s
retries: 3
start_period: 10s
# ── Demo: Provider Agent ─────────────────────────────────────────
provider:
build: .
container_name: nexus-provider
command: python -m agents.provider
ports:
- "9501:9501"
environment:
- NEXUS_URL=http://nexus:9500
- PYTHONUNBUFFERED=1
depends_on:
nexus:
condition: service_healthy
restart: unless-stopped
# ── Demo: Consumer Agent ─────────────────────────────────────────
consumer:
build: .
container_name: nexus-consumer
command: python -m agents.consumer
ports:
- "9502:9502"
environment:
- NEXUS_URL=http://nexus:9500
- PYTHONUNBUFFERED=1
depends_on:
nexus:
condition: service_healthy
provider:
condition: service_started
restart: unless-stopped
volumes:
nexus-data:
driver: local