-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (60 loc) · 1.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (60 loc) · 1.42 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
# AgentMesh Development Stack
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: agentmesh
POSTGRES_PASSWORD: agentmesh_dev
POSTGRES_DB: agentmesh
volumes:
- postgres_data:/var/lib/postgresql/data
- ./registry/migrations:/docker-entrypoint-initdb.d:ro
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agentmesh"]
interval: 10s
timeout: 5s
retries: 5
# Registry API
registry:
build:
context: ./registry
dockerfile: Dockerfile
environment:
DATABASE_URL: postgres://agentmesh:agentmesh_dev@postgres:5432/agentmesh
RUST_LOG: agentmesh_registry=info,actix_web=info
HOST: 0.0.0.0
PORT: 8080
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/v1/health"]
interval: 30s
timeout: 3s
retries: 3
# Relay Server
relay:
build:
context: ./relay
dockerfile: Dockerfile
environment:
RUST_LOG: agentmesh_relay=info
RELAY_ADDR: 0.0.0.0:8765
ports:
- "8765:8765"
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "8765"]
interval: 30s
timeout: 3s
retries: 3
volumes:
postgres_data:
networks:
default:
name: agentmesh