-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (58 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
61 lines (58 loc) · 1.49 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
services:
# Bootstrap node (genesis creator)
node-0:
image: ghcr.io/disentangle-network/disentangle-node:v0.4.1
container_name: disentangle-node-0
command: ["9000", "8000"]
ports:
- "8000:8000" # RPC
- "9000:9000" # P2P
networks:
- disentangle
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/status"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
# Follower node 1
node-1:
image: ghcr.io/disentangle-network/disentangle-node:v0.4.1
container_name: disentangle-node-1
command: ["9000", "8000", "/dns4/node-0/tcp/9000"]
ports:
- "8001:8000" # RPC
- "9001:9000" # P2P
depends_on:
node-0:
condition: service_healthy
networks:
- disentangle
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/status"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
# Follower node 2
node-2:
image: ghcr.io/disentangle-network/disentangle-node:v0.4.1
container_name: disentangle-node-2
command: ["9000", "8000", "/dns4/node-0/tcp/9000"]
ports:
- "8002:8000" # RPC
- "9002:9000" # P2P
depends_on:
node-0:
condition: service_healthy
networks:
- disentangle
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/status"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
networks:
disentangle:
driver: bridge