-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-dp-V0-to-V2.yml
86 lines (72 loc) · 3.09 KB
/
docker-compose-dp-V0-to-V2.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
# version: "3"
version: "2"
x-defaults: &defaults
volumes: &default-volume-config
- /opt/prb10旧数据目录/data:/var/data_old
- /opt/prb20新数据目录(新建)/data_1:/var/data
services:
data_provider:
image: phalanetwork/prb:next
hostname: data_provider
network_mode: host
restart: always
volumes: *default-volume-config
logging:
options:
# 保存的日志大小
# max-size: "1g"
max-size: "500m"
environment:
# 要启动的模块
- PHALA_MODULE=data_provider
# 应用程序环境,设置为开发以将应用置于开发模式
- NODE_ENV=development
# 记录日志级别
- PHALA_LOGGER_LEVEL=debug
# 要和 PRB 的 lifecycle 的相同环境变量保持一致
- PHALA_BRIDGE_IDENTITY=staging
# WebSocket端点到中继链的Substrate RPC(例如,对于Khala来说,它是Kusama)
- PHALA_PARENT_CHAIN_ENDPOINT=ws://127.0.0.1:9945
# 指向副链的 Substrate RPC 的 WebSocket 端点(这里指向khala)。
- PHALA_CHAIN_ENDPOINT=ws://127.0.0.1:9944
# libp2p 的侦听地址的多地址(https://github.com/libp2p/specs/tree/master/addressing)
# 默认为'/ip4/0.0.0.0/tcp/0,/ip6/::/tcp/0',这意味着在每个接口上侦听一个随机端口。
# 仅支持 TCP 协议。在地址之间使用逗号。配置127.0.0.1可能会无法被发现
# - PHALA_WALKIE_LISTEN_ADDRESSES=/ip4/127.0.0.1/tcp/28888,/ip6/::/tcp/28889
- PHALA_WALKIE_LISTEN_ADDRESSES=/ip4/0.0.0.0/tcp/28888,/ip6/::/tcp/28889
# 用于对等发现的引导节点的多添加列表默认为"/ip4/0.0.0.0/tcp/18888,/ip6/::/tcp/28889",这意味着没有引导节点。
# 仅支持 TCP 协议。在地址之间使用逗号。
# - PHALA_WALKIE_BOOT_NODES=/ip4/0.0.0.0/tcp/18888,/ip6/::/tcp/28889
- PHALA_WALKIE_BOOT_NODES=/ip4/0.0.0.0/tcp/18888,/ip6/::/tcp/18889
# BLOB服务session使用的最大内存为64G
- PHALA_LIFECYCLE_BLOB_SERVER_SESSION_MAX_MEMORY=64
# 存储标识密钥的路径默认为"./data/keys/id",默认存储./data/keys/id
# - PHALA_PEER_ID_PREFIX=./data/keys/id
# the blob server, defaults to 8012
# PHALA_DATA_PROVIDER_LOCAL_SERVER_PORT=8012
# The path to database, defaults to './data/0'.
# - PHALA_LOCAL_DB_PATH=
entrypoint:
- "node"
- "--trace-warnings"
- "--experimental-json-modules"
- "--es-module-specifier-resolution=node"
- "--harmony-top-level-await"
# - "--trace-gc"
# - "--expose-gc"
# - "--no-compilation-cache"
# - "--max-old-space-size=10240"
# - "--max-heap-size=100"
# - "--no-always-promote-young-mc"
- "dist/index"
monitor:
image: phalanetwork/prb-monitor:next
# image: phalanetwork/prb-monitor
hostname: monitor
network_mode: host
environment:
- NS_FETCH=fetch
- NEXT_PUBLIC_NS_LIST=default
- PTP_BOOT_NODES=/ip4/127.0.0.1/tcp/28888
# ports:
# - "3000:3000"