-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-V0.yml
174 lines (163 loc) · 4.05 KB
/
docker-compose-V0.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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
version: "3"
x-defaults: &defaults
volumes: &default-volume-config
- /var/khala-dev-node/prb_data:/var/data
services:
fetch:
image: phalanetwork/prb:latest
hostname: fetch
container_name: fetch
depends_on:
- redis
- io
volumes: *default-volume-config
environment:
- PHALA_MODULE=fetch
- NODE_ENV=testing
- PHALA_DB_HOST=io
- PHALA_DB_PORT_BASE=9000
- PHALA_LOGGER_LEVEL=debug
- PHALA_PARENT_CHAIN_ENDPOINT=ws://node:9945
- PHALA_CHAIN_ENDPOINT=ws://node:9944
- PHALA_REDIS_ENDPOINT=redis://redis:6379/
lifecycle:
image: phalanetwork/prb:latest
hostname: lifecycle
container_name: lifecycle
depends_on:
- redis
- redis-q
- io
volumes: *default-volume-config
environment:
- PHALA_MODULE=lifecycle
- NODE_ENV=testing
- PHALA_DB_HOST=io
- PHALA_DB_PORT_BASE=9000
- PHALA_LOGGER_LEVEL=debug
- PHALA_PARENT_CHAIN_ENDPOINT=ws://node:9945
- PHALA_CHAIN_ENDPOINT=ws://node:9944
- PHALA_REDIS_ENDPOINT=redis://redis:6379/
- PHALA_Q_REDIS_ENDPOINT=redis://redis-q:6379/
- PHALA_NAMESPACE=default
- PHALA_ENABLE_KEEP_ALIVE=true
trade:
image: phalanetwork/prb:latest
hostname: trade
container_name: trade
depends_on:
- redis
- redis-q
- io
volumes: *default-volume-config
environment:
- PHALA_MODULE=trade
- NODE_ENV=testing
- PHALA_DB_HOST=io
- PHALA_DB_PORT_BASE=9000
- PHALA_LOGGER_LEVEL=debug
- PHALA_PARENT_CHAIN_ENDPOINT=ws://node:9945
- PHALA_CHAIN_ENDPOINT=ws://node:9944
- PHALA_REDIS_ENDPOINT=redis://redis:6379/
- PHALA_Q_REDIS_ENDPOINT=redis://redis-q:6379/
- PHALA_NAMESPACE=default
inspect:
image: phalanetwork/prb:latest
hostname: inspect
depends_on:
- io
volumes: *default-volume-config
environment:
- PHALA_MODULE=io/inspect
- NODE_ENV=inspect
- PHALA_DB_HOST=io
- PHALA_DB_PORT_BASE=9000
- PHALA_LOGGER_LEVEL=debug
ports:
- "9000:9000"
- "9001:9001"
- "9003:9003"
io:
<< : *defaults
image: phalanetwork/prb:latest
hostname: io
restart: always
environment:
- PHALA_MODULE=io
- NODE_ENV=testing
- PHALA_DB_HOST=io
- PHALA_DB_PORT_BASE=9000
- PHALA_LOGGER_LEVEL=debug
- PHALA_DB_PREFIX=/var/data
- PHALA_DB_TYPE=rocksdb
redis:
image: redis:alpine
command: ["redis-server", "--appendonly", "no", '--save', '']
restart: always
hostname: redis
ports:
- "63791:6379"
redis-q:
image: redis:alpine
command: ["redis-server", "--appendonly", "no", '--save', '']
restart: always
hostname: redis-q
ports:
- "63792:6379"
arena:
image: phalanetwork/prb:latest
hostname: trade
depends_on:
- redis
- io
volumes: *default-volume-config
environment:
- PHALA_MODULE=utils/arena
- NODE_ENV=testing
- PHALA_DB_HOST=io
- PHALA_DB_PORT_BASE=9000
- PHALA_LOGGER_LEVEL=debug
- REDIS_ENDPOINT=redis://redis-q:6379/
ports:
- "4567:4567"
monitor:
image: phalanetwork/prb-monitor:latest
hostname: monitor
environment:
- "REDIS_ENDPOINT=redis://redis:6379"
- PHALA_NAMESPACE=default
ports:
- "3000:3000"
node:
image: phalanetwork/khala-node
container_name: node
hostname: node
ports:
- "9933:9933"
- "9934:9934"
- "9944:9944"
- "9945:9945"
- "30333:30333"
- "30334:30334"
environment:
- NODE_NAME=PNODE
- NODE_ROLE=MINER
volumes:
- /var/khala-dev-node:/root/data
pruntime:
image: phalanetwork/phala-pruntime
container_name: pruntime
hostname: pruntime
ports:
- "8000:8000"
devices:
- /dev/sgx/enclave
- /dev/sgx/provision
- /dev/sgx_enclave
- /dev/sgx_provision
- /dev/isgx
environment:
- EXTRA_OPTS=--cores=6
- ROCKET_ADDRESS=0.0.0.0
volumes:
- /var/khala-pruntime-data:/root/data