-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (85 loc) · 2.07 KB
/
docker-compose.yml
File metadata and controls
90 lines (85 loc) · 2.07 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
# InfoMesh Docker Compose — multi-node local development setup
#
# Usage:
# docker compose up -d # Start 3 nodes
# docker compose logs -f node1 # Follow node1 logs
# docker compose down # Stop all
#
# Nodes:
# node1: Full node (crawler + search), admin API on :8080
# node2: Full node, admin API on :8082
# node3: Full node, admin API on :8084
#
# MCP HTTP transport:
# node1: :8081, node2: :8083, node3: :8085
#
# All nodes share a custom bridge network for P2P discovery.
services:
node1:
build: .
container_name: infomesh-node1
hostname: node1
ports:
- "8080:8080" # Admin API
- "8081:8081" # MCP HTTP
volumes:
- node1-data:/home/infomesh/.infomesh
environment:
- INFOMESH_NODE_NAME=node1
- INFOMESH_API_KEY=${INFOMESH_API_KEY:-}
networks:
- infomesh-net
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
node2:
build: .
container_name: infomesh-node2
hostname: node2
ports:
- "8082:8080"
- "8083:8081"
volumes:
- node2-data:/home/infomesh/.infomesh
environment:
- INFOMESH_NODE_NAME=node2
- INFOMESH_API_KEY=${INFOMESH_API_KEY:-}
networks:
- infomesh-net
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
node3:
build: .
container_name: infomesh-node3
hostname: node3
ports:
- "8084:8080"
- "8085:8081"
volumes:
- node3-data:/home/infomesh/.infomesh
environment:
- INFOMESH_NODE_NAME=node3
- INFOMESH_API_KEY=${INFOMESH_API_KEY:-}
networks:
- infomesh-net
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
volumes:
node1-data:
node2-data:
node3-data:
networks:
infomesh-net:
driver: bridge