forked from Phala-Network/solo-mining-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (53 loc) · 1.31 KB
/
docker-compose.yml
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
version: "3"
services:
phala-node:
image: ${NODE_IMAGE}
container_name: phala-node
hostname: phala-node
ports:
- "9933:9933"
- "9934:9934"
- "9944:9944"
- "9945:9945"
- "30333:30333"
- "30334:30334"
environment:
- NODE_NAME=${NODE_NAME}
- NODE_ROLE=MINER
- "PARACHAIN_EXTRA_ARGS=--state-cache-size 671088640 --db-cache 2048 --max-runtime-instances 16"
- "RELAYCHAIN_EXTRA_ARGS=--state-cache-size 671088640 --db-cache 2048 --max-runtime-instances 16"
volumes:
- ${NODE_VOLUMES}
phala-pruntime:
image: ${PRUNTIME_IMAGE}
container_name: phala-pruntime
hostname: phala-pruntime
ports:
- "8000:8000"
devices:
environment:
- EXTRA_OPTS=--cores=${CORES}
- ROCKET_ADDRESS=0.0.0.0
volumes:
- ${PRUNTIME_VOLUMES}
phala-pherry:
image: ${PHERRY_IMAGE}
container_name: phala-pherry
hostname: phala-pherry
depends_on:
- phala-node
- phala-pruntime
restart: always
entrypoint:
[
"/root/pherry",
"-r",
"--parachain",
"--mnemonic=${MNEMONIC}",
"--substrate-ws-endpoint=ws://phala-node:9945",
"--collator-ws-endpoint=ws://phala-node:9944",
"--pruntime-endpoint=http://phala-pruntime:8000",
"--operator=${OPERATOR}",
"--fetch-blocks=512",
"--auto-restart"
]