Skip to content

Commit cd38e6e

Browse files
authored
Merge pull request #14 from ABlockOfficial/docker-compose
Easy local startup
2 parents 99dd978 + 1b5d08c commit cd38e6e

File tree

3 files changed

+55
-8
lines changed

3 files changed

+55
-8
lines changed

.docker/conf/node_settings.toml

+4-4
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"

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: build-deploy
1+
name: build-scan
22
on:
33
push:
44
branches:
55
- main
6-
- enable_domain_resolution
6+
- develop
77

88
permissions:
99
contents: read
@@ -12,12 +12,12 @@ permissions:
1212

1313
jobs:
1414
build:
15-
uses: ablockofficial/platform/.github/workflows/build.yml@main
15+
uses: ablockofficial/workflows/.github/workflows/build.yml@main
1616
with:
1717
REGISTRY: ${{ vars.REGISTRY }}
1818
REPOSITORY: ${{ vars.REPOSITORY }}
1919
scan-image:
20-
uses: ablockofficial/platform/.github/workflows/scan-image.yml@main
20+
uses: ablockofficial/workflows/.github/workflows/scan-image.yml@main
2121
secrets: inherit
2222
needs: build
2323
with:

docker-compose.yml

+47
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)