-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (105 loc) · 2.56 KB
/
docker-compose.yml
File metadata and controls
113 lines (105 loc) · 2.56 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3.8'
services:
# Local Ethereum node for development
hardhat:
image: node:18
working_dir: /app
volumes:
- .:/app
ports:
- "8545:8545"
command: npx hardhat node --hostname 0.0.0.0
networks:
- autonet
# Proposer node
proposer:
build:
context: .
dockerfile: Dockerfile.node
environment:
- NODE_ROLE=proposer
- CHAIN_RPC_URL=http://hardhat:8545
- BLOB_DATA_DIR=/data/blobs
- BLOB_HTTP_PORT=9100
- PEER_URLS=http://solver:9100,http://coordinator:9100,http://aggregator:9100,http://inference:9100
depends_on:
- hardhat
volumes:
- blob_data:/data/blobs
networks:
- autonet
# Solver node
solver:
build:
context: .
dockerfile: Dockerfile.node
environment:
- NODE_ROLE=solver
- CHAIN_RPC_URL=http://hardhat:8545
- BLOB_DATA_DIR=/data/blobs
- BLOB_HTTP_PORT=9100
- PEER_URLS=http://proposer:9100,http://coordinator:9100,http://aggregator:9100,http://inference:9100
depends_on:
- hardhat
volumes:
- blob_data:/data/blobs
networks:
- autonet
# Coordinator node
coordinator:
build:
context: .
dockerfile: Dockerfile.node
environment:
- NODE_ROLE=coordinator
- CHAIN_RPC_URL=http://hardhat:8545
- BLOB_DATA_DIR=/data/blobs
- BLOB_HTTP_PORT=9100
- PEER_URLS=http://proposer:9100,http://solver:9100,http://aggregator:9100,http://inference:9100
depends_on:
- hardhat
volumes:
- blob_data:/data/blobs
networks:
- autonet
# Aggregator node
aggregator:
build:
context: .
dockerfile: Dockerfile.node
environment:
- NODE_ROLE=aggregator
- CHAIN_RPC_URL=http://hardhat:8545
- BLOB_DATA_DIR=/data/blobs
- BLOB_HTTP_PORT=9100
- PEER_URLS=http://proposer:9100,http://solver:9100,http://coordinator:9100,http://inference:9100
depends_on:
- hardhat
volumes:
- blob_data:/data/blobs
networks:
- autonet
# Inference node
inference:
build:
context: .
dockerfile: Dockerfile.node
environment:
- NODE_ROLE=inference
- CHAIN_RPC_URL=http://hardhat:8545
- BLOB_DATA_DIR=/data/blobs
- BLOB_HTTP_PORT=9100
- PEER_URLS=http://proposer:9100,http://solver:9100,http://coordinator:9100,http://aggregator:9100
depends_on:
- hardhat
volumes:
- blob_data:/data/blobs
ports:
- "9100:9100"
networks:
- autonet
volumes:
blob_data:
networks:
autonet:
driver: bridge