forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
36 lines (35 loc) · 929 Bytes
/
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
---
version: "3"
services:
validator:
container_name: validator
image: mysten/sui-node:${SUI_SHA} # UPDATE HERE
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info,sui_core=debug,narwhal=debug,narwhal-primary::helper=info,jsonrpsee=error
labels:
org.label-schema.name: "validator"
ports:
- "8080:8080"
- "8081:8081/udp"
- "8082:8082/udp"
- "8084:8084/udp"
- "9184:9184"
network_mode: "host"
volumes:
- ./validator.yaml:/opt/sui/config/validator.yaml:ro
- ./genesis.blob:/opt/sui/config/genesis.blob:ro
- ../genesis/key-pairs:/opt/sui/key-pairs/:ro
- /opt/sui/db:/opt/sui/db:rw
command:
[
"/opt/sui/bin/sui-node",
"--config-path",
"/opt/sui/config/validator.yaml",
]
restart: on-failure
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "5g"