-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.prb.sample.yml
109 lines (104 loc) · 3.14 KB
/
docker-compose.prb.sample.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
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
# version: "3"
version: "2"
x-defaults: &defaults
volumes: &default-volume-config
- ./data:/var/data
services:
redis-q:
network_mode: host
image: redis:alpine
hostname: redis-q
restart: always
logging:
options:
max-size: "1g"
command: ["redis-server", "--port", "63792", "--appendonly", "no", '--save', '']
# ports:
# - "63792:63792"
arena:
network_mode: host
# image: phalanetwork/prb:git-next
image: phalanetwork/prb:next
hostname: arena
restart: always
depends_on:
- redis-q
environment:
- PHALA_MODULE=utils/arena
- NODE_ENV=development
- PHALA_LOGGER_LEVEL=debug
- PHALA_NAMESPACE=default
- REDIS_ENDPOINT=redis://127.0.0.1:63792/
# ports:
# - "4567:4567"
trade:
network_mode: host
# image: phalanetwork/prb:git-next
image: phalanetwork/prb:next
hostname: trade
restart: always
volumes: *default-volume-config
logging:
options:
# max-size: "1g"
max-size: "500m"
depends_on:
- redis-q
environment:
- PHALA_MODULE=trade
- NODE_ENV=development
- PHALA_DB_NAMESPACE=default
- PHALA_DB_FETCH_NAMESPACE=fetch
- PHALA_DB_ENDPOINT=redis://127.0.0.1:6666
- PHALA_LOGGER_LEVEL=debug
- PHALA_PARENT_CHAIN_ENDPOINT=ws://127.0.0.1:9945
- PHALA_CHAIN_ENDPOINT=ws://127.0.0.1:9944
- PHALA_Q_REDIS_ENDPOINT=redis://127.0.0.1:63792/
entrypoint:
- "node"
- "--trace-warnings"
- "--experimental-json-modules"
- "--es-module-specifier-resolution=node"
- "--harmony-top-level-await"
# - "--max-old-space-size=10240"
- "dist/index"
lifecycle:
network_mode: host
# image: phalanetwork/prb:git-next
image: phalanetwork/prb:next
hostname: lifecycle
restart: always
depends_on:
- redis-q
volumes: *default-volume-config
logging:
options:
# max-size: "1g"
max-size: "500m"
environment:
- PHALA_SYNC_ONLY=true
- PHALA_MODULE=lifecycle
- NODE_ENV=development
- PHALA_LOGGER_LEVEL=debug
- PHALA_PARENT_CHAIN_ENDPOINT=ws://127.0.0.1:9945
- PHALA_CHAIN_ENDPOINT=ws://127.0.0.1:9944
- PHALA_Q_REDIS_ENDPOINT=redis://127.0.0.1:63792/
- PHALA_LRU_CACHE_SIZE=50
- PHALA_LRU_CACHE_MAX_AGE=90000
- PHALA_RUNNER_MAX_WORKER_NUMBER=180
- PHALA_PRPC_REQUEST_TIMEOUT=60000
# 要和 dp 的 data_provider 的相同环境变量保持一致
- PHALA_BRIDGE_IDENTITY=staging
- PHALA_WALKIE_LISTEN_ADDRESSES=/ip4/0.0.0.0/tcp/29888,/ip6/::/tcp/29889
# - PHALA_WALKIE_BOOT_NODES=/ip4/10.87.0.51/tcp/28888/p2p/QmbgiLdgeBhVmCfDtrFzC158HCkRTC4J38tZay2T3uxjtJ,/ip4/10.87.0.52/tcp/28888/p2p/QmWhwPfb2VtuBQtrepw9shoafGmvnXdKu8fNq7Yfw32jCN
- PHALA_WALKIE_BOOT_NODES=/ip4/127.0.0.1/tcp/28888/p2p/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
mem_swappiness: 70
entrypoint:
- "node"
- "--trace-warnings"
- "--experimental-json-modules"
- "--es-module-specifier-resolution=node"
- "--harmony-top-level-await"
- "dist/index"
# ports:
# - "29888:29888"