forked from tronprotocol/tron-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (68 loc) · 2.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (68 loc) · 2.18 KB
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
version: '3.8'
services:
tron-witness1:
image: tronprotocol/java-tron:latest
container_name: tron-witness1
networks:
- tron_private_network
deploy:
resources:
limits:
memory: 12g
ports:
- "8090:8090" # for external http API request
- "50051:50051" # for external rpc API request
volumes:
- ../conf:/java-tron/conf
- ./datadir:/java-tron/data # mount a local directory to make the blocks data persistent.
- ./logs/tron-witness1:/java-tron/logs # map to host logs
command: >
-jvm "{-Xmx12g -Xmn2g -XX:+UseConcMarkSweepGC -Xloggc:./logs/gc.log}" -c /java-tron/conf/private_net_config_witness1.conf -d /java-tron/data -w
# tron-witness2:
# image: tronprotocol/java-tron:latest
# container_name: tron-witness2 # change container_name
# networks:
# - tron_private_network
# deploy:
# resources:
# limits:
# memory: 12g
# volumes:
# - ../conf:/java-tron/conf
# - ./logs/tron-witness2:/java-tron/logs
# command: >
# -jvm "{-Xmx12g -Xmn2g -XX:+UseConcMarkSweepGC -Xloggc:./logs/gc.log}"
# -c /java-tron/conf/private_net_config_witness2.conf
# -w
tron-node1:
image: tronprotocol/java-tron:latest
container_name: tron-node1
networks:
- tron_private_network
deploy:
resources:
limits:
memory: 12g
volumes:
- ../conf:/java-tron/conf
- ./logs/tron-node1:/java-tron/logs
command: >
-jvm "{-Xmx12g -Xmn2g -XX:+UseConcMarkSweepGC -Xloggc:./logs/gc.log}" -c /java-tron/conf/private_net_config_others.conf
# tron-node2:
# image: tronprotocol/java-tron:latest
# container_name: tron-node2 # just need change container_name
# networks:
# - tron_private_network
# deploy:
# resources:
# limits:
# memory: 12g
# volumes:
# - ../conf:/java-tron/conf
# - ./logs/tron-node2:/java-tron/logs
# command: >
# -jvm "{-Xmx12g -Xmn2g -XX:+UseConcMarkSweepGC -Xloggc:./logs/gc.log}"
# -c /java-tron/conf/private_net_config_others.conf
networks:
tron_private_network:
driver: bridge