Skip to content

Commit 0e183f6

Browse files
committed
docker-compose and settings for easy local launch of nodes
1 parent 99dd978 commit 0e183f6

File tree

2 files changed

+51
-4
lines changed

2 files changed

+51
-4
lines changed

.docker/conf/node_settings.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ user_setup_tx_max_count = 100000
2828

2929
#first node is leader
3030
[[compute_nodes]]
31-
address = "http://localhost:12300"
31+
address = "http://network-a-compute-node-1:12300"
3232

3333
[[storage_nodes]]
34-
address = "http://localhost:12330"
34+
address = "http://network-a-storage-node-1:12330"
3535

3636
[[miner_nodes]]
37-
address = "http://localhost:12340"
37+
address = "http://network-a-miner-node-1:12340"
3838

3939
[[user_nodes]]
40-
address = "http://localhost:12360"
40+
address = "http://network-a-user-node-1:12360"

docker-compose.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
version: '3'
2+
services:
3+
4+
a-compute-node: &node-default
5+
image: network
6+
environment:
7+
RUST_LOG: info,debug
8+
init: true
9+
ports:
10+
- '12300:12300'
11+
- '3003:3003'
12+
volumes:
13+
- /tmp/compute:/src
14+
command: compute
15+
16+
a-storage-node:
17+
<<: *node-default
18+
ports:
19+
- '12330:12330'
20+
- '3001:3001'
21+
volumes:
22+
- /tmp/storage:/src
23+
command: storage
24+
25+
a-miner-node:
26+
<<: *node-default
27+
depends_on:
28+
- a-compute-node
29+
- a-storage-node
30+
ports:
31+
- '12340:12340'
32+
- '3004:3004'
33+
volumes:
34+
- /tmp/miner:/src
35+
command: miner
36+
37+
# a-alice-node:
38+
# <<: *node-default
39+
# ports:
40+
# - '12360:12360'
41+
# command: node user
42+
43+
# a-bob-node:
44+
# <<: *node-default
45+
# ports:
46+
# - '12361:12361'
47+
# command: node user

0 commit comments

Comments
 (0)