-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (84 loc) · 1.88 KB
/
docker-compose.yml
File metadata and controls
91 lines (84 loc) · 1.88 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
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: beacon-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
gateway:
build:
context: .
dockerfile: Dockerfile.gateway
container_name: beacon-gateway
ports:
- "8545:8545"
- "8546:8546"
- "9090:9090"
environment:
- RUST_LOG=beacon_gateway=debug,info
- BEACON_REDIS_URL=redis://redis:6379
- BEACON_NETWORK=mainnet
- BEACON_MIN_CONSENSUS=2
- BEACON_QUERY_PEERS=3
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8545/health"]
interval: 30s
timeout: 3s
retries: 3
mesh-node-1:
build:
context: .
dockerfile: Dockerfile.mesh-node
container_name: beacon-mesh-node-1
ports:
- "9001:9001"
environment:
- RUST_LOG=beacon_mesh_node=debug,info
- CLIENT_TYPE=helios
- NETWORK=mainnet
volumes:
- node1-data:/var/lib/beacon-mesh
mesh-node-2:
build:
context: .
dockerfile: Dockerfile.mesh-node
container_name: beacon-mesh-node-2
ports:
- "9002:9001"
environment:
- RUST_LOG=beacon_mesh_node=debug,info
- CLIENT_TYPE=helios
- NETWORK=mainnet
volumes:
- node2-data:/var/lib/beacon-mesh
mesh-node-3:
build:
context: .
dockerfile: Dockerfile.mesh-node
container_name: beacon-mesh-node-3
ports:
- "9003:9001"
environment:
- RUST_LOG=beacon_mesh_node=debug,info
- CLIENT_TYPE=helios
- NETWORK=mainnet
volumes:
- node3-data:/var/lib/beacon-mesh
volumes:
redis-data:
node1-data:
node2-data:
node3-data:
networks:
default:
name: beacon-network