-
Notifications
You must be signed in to change notification settings - Fork 124
/
docker-compose.yaml
161 lines (161 loc) · 9.08 KB
/
docker-compose.yaml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
version: '3'
services:
validator-0:
hostname: validator-0
image: annchain/genesis:latest
ports:
- '46000:46000'
- '47000:47000'
entrypoint:
- /bin/sh
- -c
- |
mkdir -p logs
mkdir -p /genesis
genesis init --runtime="/genesis" --log_path="logs/genesis.log" --app="evm" --chainid=9102
echo '{"genesis_time":"0001-01-01T00:00:00.000Z","chain_id":"9102","validators":[{"pub_key":[1,"1C93767F98D451F9A5464938ABDEECBEF9BE4606190D446D9057EC3E90009AD8"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"9C5A3B4C2C99FD432B5D638696600FE4F76084A20BAE933E3A97AD8FE2663637"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"0749EDC56F28D9B0943CD1C9E261CB7547A3060F36882077BA372CCD1B5A9963"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"576CF4053E3F9C1778C8276378DDA072178F0212FF1E2300E064B73DE3AB5850"],"amount":100,"name":"","is_ca":true,"rpc":""}],"app_hash":"","plugins":"adminOp,querycache"}' > /genesis/genesis.json
echo 'app_name = "evm"
auth_by_ca = false
block_size = 5000
crypto_type = "ZA"
db_backend = "leveldb"
environment = "production"
fast_sync = true
log_path = ""
moniker = "anonymous"
non_validator_node_auth = true
p2p_laddr = "tcp://0.0.0.0:46000"
rpc_laddr = "tcp://0.0.0.0:47000"
seeds = "192.168.10.10:46000,192.168.10.11:46001,192.168.10.12:46002,192.168.10.13:46003"
signbyca = ""
skip_upnp = true
threshold_blocks = 0
tracerouter_msg_ttl = 5
network_rate_limit = 1024' > /genesis/config.toml
echo '{"address":"6E57A5F704E94151714650DCFC52D220595D912B","pub_key":[1,"1C93767F98D451F9A5464938ABDEECBEF9BE4606190D446D9057EC3E90009AD8"],"last_height":0,"last_round":0,"last_step":0,"last_signature":null,"last_signbytes":"","priv_key":[1,"C8A5E8E93D58D4AD26DDB6BA9D14BA1941E3AE26E39E9B71F70855C9E391A0E01C93767F98D451F9A5464938ABDEECBEF9BE4606190D446D9057EC3E90009AD8"]}' > /genesis/priv_validator.json
genesis run --runtime="/genesis"
networks:
app_net:
ipv4_address: 192.168.10.10
restart: always
validator-1:
hostname: validator-1
image: annchain/genesis:latest
ports:
- '46001:46001'
- '47001:47001'
entrypoint:
- /bin/sh
- -c
- |
mkdir -p logs
mkdir -p /genesis
genesis init --runtime="/genesis" --log_path="logs/genesis.log" --app="evm" --chainid=9102
echo '{"genesis_time":"0001-01-01T00:00:00.000Z","chain_id":"9102","validators":[{"pub_key":[1,"1C93767F98D451F9A5464938ABDEECBEF9BE4606190D446D9057EC3E90009AD8"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"9C5A3B4C2C99FD432B5D638696600FE4F76084A20BAE933E3A97AD8FE2663637"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"0749EDC56F28D9B0943CD1C9E261CB7547A3060F36882077BA372CCD1B5A9963"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"576CF4053E3F9C1778C8276378DDA072178F0212FF1E2300E064B73DE3AB5850"],"amount":100,"name":"","is_ca":true,"rpc":""}],"app_hash":"","plugins":"adminOp,querycache"}' > /genesis/genesis.json
echo 'app_name = "evm"
auth_by_ca = false
block_size = 5000
crypto_type = "ZA"
db_backend = "leveldb"
environment = "production"
fast_sync = true
log_path = ""
moniker = "anonymous"
non_validator_node_auth = true
p2p_laddr = "tcp://0.0.0.0:46001"
rpc_laddr = "tcp://0.0.0.0:47001"
seeds = "192.168.10.10:46000,192.168.10.11:46001,192.168.10.12:46002,192.168.10.13:46003"
signbyca = ""
skip_upnp = true
threshold_blocks = 0
tracerouter_msg_ttl = 5
network_rate_limit = 1024' > /genesis/config.toml
echo '{"address":"AE4EC0F626FFE71D013C8E8F5137B710F5DC715F","pub_key":[1,"9C5A3B4C2C99FD432B5D638696600FE4F76084A20BAE933E3A97AD8FE2663637"],"last_height":0,"last_round":0,"last_step":0,"last_signature":null,"last_signbytes":"","priv_key":[1,"D95D969B03943B9509CD624CFA600739393BB3A2A38E869E4077F949415159399C5A3B4C2C99FD432B5D638696600FE4F76084A20BAE933E3A97AD8FE2663637"]}' > /genesis/priv_validator.json
genesis run --runtime="/genesis"
networks:
app_net:
ipv4_address: 192.168.10.11
restart: always
validator-2:
hostname: validator-2
image: annchain/genesis:latest
ports:
- '46002:46002'
- '47002:47002'
entrypoint:
- /bin/sh
- -c
- |
mkdir -p logs
mkdir -p /genesis
genesis init --runtime="/genesis" --log_path="logs/genesis.log" --app="evm" --chainid=9102
echo '{"genesis_time":"0001-01-01T00:00:00.000Z","chain_id":"9102","validators":[{"pub_key":[1,"1C93767F98D451F9A5464938ABDEECBEF9BE4606190D446D9057EC3E90009AD8"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"9C5A3B4C2C99FD432B5D638696600FE4F76084A20BAE933E3A97AD8FE2663637"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"0749EDC56F28D9B0943CD1C9E261CB7547A3060F36882077BA372CCD1B5A9963"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"576CF4053E3F9C1778C8276378DDA072178F0212FF1E2300E064B73DE3AB5850"],"amount":100,"name":"","is_ca":true,"rpc":""}],"app_hash":"","plugins":"adminOp,querycache"}' > /genesis/genesis.json
echo 'app_name = "evm"
auth_by_ca = false
block_size = 5000
crypto_type = "ZA"
db_backend = "leveldb"
environment = "production"
fast_sync = true
log_path = ""
moniker = "anonymous"
non_validator_node_auth = true
p2p_laddr = "tcp://0.0.0.0:46002"
rpc_laddr = "tcp://0.0.0.0:47002"
seeds = "192.168.10.10:46000,192.168.10.11:46001,192.168.10.12:46002,192.168.10.13:46003"
signbyca = ""
skip_upnp = true
threshold_blocks = 0
tracerouter_msg_ttl = 5
network_rate_limit = 1024' > /genesis/config.toml
echo '{"address":"DC884FC7E6311D49652A2ADE1906BBE8145DEB05","pub_key":[1,"0749EDC56F28D9B0943CD1C9E261CB7547A3060F36882077BA372CCD1B5A9963"],"last_height":0,"last_round":0,"last_step":0,"last_signature":null,"last_signbytes":"","priv_key":[1,"E5A3EFBAEAC9725F5ED36C13492C423F541056A53F37473C7BDEBD7BAA038D8A0749EDC56F28D9B0943CD1C9E261CB7547A3060F36882077BA372CCD1B5A9963"]}' > /genesis/priv_validator.json
genesis run --runtime="/genesis"
networks:
app_net:
ipv4_address: 192.168.10.12
restart: always
validator-3:
hostname: validator-3
image: annchain/genesis:latest
ports:
- '46003:46003'
- '47003:47003'
entrypoint:
- /bin/sh
- -c
- |
mkdir -p logs
mkdir -p /genesis
genesis init --runtime="/genesis" --log_path="logs/genesis.log" --app="evm" --chainid=9102
echo '{"genesis_time":"0001-01-01T00:00:00.000Z","chain_id":"9102","validators":[{"pub_key":[1,"1C93767F98D451F9A5464938ABDEECBEF9BE4606190D446D9057EC3E90009AD8"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"9C5A3B4C2C99FD432B5D638696600FE4F76084A20BAE933E3A97AD8FE2663637"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"0749EDC56F28D9B0943CD1C9E261CB7547A3060F36882077BA372CCD1B5A9963"],"amount":100,"name":"","is_ca":true,"rpc":""},{"pub_key":[1,"576CF4053E3F9C1778C8276378DDA072178F0212FF1E2300E064B73DE3AB5850"],"amount":100,"name":"","is_ca":true,"rpc":""}],"app_hash":"","plugins":"adminOp,querycache"}' > /genesis/genesis.json
echo 'app_name = "evm"
auth_by_ca = false
block_size = 5000
crypto_type = "ZA"
db_backend = "leveldb"
environment = "production"
fast_sync = true
log_path = ""
moniker = "anonymous"
non_validator_node_auth = true
p2p_laddr = "tcp://0.0.0.0:46003"
rpc_laddr = "tcp://0.0.0.0:47003"
seeds = "192.168.10.10:46000,192.168.10.11:46001,192.168.10.12:46002,192.168.10.13:46003"
signbyca = ""
skip_upnp = true
threshold_blocks = 0
tracerouter_msg_ttl = 5
network_rate_limit = 1024' > /genesis/config.toml
echo '{"address":"7CE2DED89377BA0C2742CF4C0CF0F3687BBC3C32","pub_key":[1,"576CF4053E3F9C1778C8276378DDA072178F0212FF1E2300E064B73DE3AB5850"],"last_height":0,"last_round":0,"last_step":0,"last_signature":null,"last_signbytes":"","priv_key":[1,"B578B7B45316454F8198BEB760C9460A4C5617417B99F587777C0FF9A54BA195576CF4053E3F9C1778C8276378DDA072178F0212FF1E2300E064B73DE3AB5850"]}' > /genesis/priv_validator.json
genesis run --runtime="/genesis"
networks:
app_net:
ipv4_address: 192.168.10.13
restart: always
networks:
app_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.10.0/24