File tree Expand file tree Collapse file tree 2 files changed +51
-4
lines changed
Expand file tree Collapse file tree 2 files changed +51
-4
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+ services :
3+ tron-node1 :
4+ image : tronprotocol/java-tron:latest
5+ container_name : tron-node1
6+ networks :
7+ - tron_network
8+ deploy :
9+ resources :
10+ limits :
11+ memory : 16g
12+ ports :
13+ - " 8090:8090" # for external http API request
14+ - " 9527:9527" # used for metric API
15+ volumes :
16+ - ../conf:/java-tron/conf
17+ - ./datadir:/java-tron/data # mount a local directory to make the blocks data persistent.
18+ command : >
19+ -jvm "{-Xmx16g -Xms12g -XX:+UseConcMarkSweepGC -XX:+PrintGC}" -c ./conf/main_net_config.conf -d /java-tron/data
20+
21+ prometheus :
22+ image : prom/prometheus:latest
23+ container_name : prometheus
24+ networks :
25+ - tron_network
26+ deploy :
27+ resources :
28+ limits :
29+ memory : 1g
30+ ports :
31+ - " 9090:9090" # used for external collect metrics
32+ volumes :
33+ - ./metric_conf/prometheus.yml:/etc/prometheus/prometheus.yml
34+ grafana :
35+ image : grafana/grafana-oss
36+ container_name : grafana
37+ networks :
38+ - tron_network
39+ deploy :
40+ resources :
41+ limits :
42+ memory : 1g
43+ ports :
44+ - " 3000:3000"
45+ networks :
46+ tron_network :
47+ driver : bridge
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ services:
88 deploy :
99 resources :
1010 limits :
11- memory : 16g
11+ memory : 12g
1212 ports :
1313 - " 8090:8090" # for external http API request
1414 - " 50051:50051" # for external rpc API request
@@ -27,7 +27,7 @@ services:
2727 # deploy:
2828 # resources:
2929 # limits:
30- # memory: 16g
30+ # memory: 12g
3131 # volumes:
3232 # - ../conf:/java-tron/conf
3333 # - ./logs/tron-witness2:/java-tron/logs
@@ -43,7 +43,7 @@ services:
4343 deploy :
4444 resources :
4545 limits :
46- memory : 16g
46+ memory : 12g
4747 volumes :
4848 - ../conf:/java-tron/conf
4949 - ./logs/tron-node1:/java-tron/logs
@@ -58,7 +58,7 @@ services:
5858# deploy:
5959# resources:
6060# limits:
61- # memory: 16g
61+ # memory: 12g
6262# volumes:
6363# - ../conf:/java-tron/conf
6464# - ./logs/tron-node2:/java-tron/logs
You can’t perform that action at this time.
0 commit comments