-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
66 lines (64 loc) · 1.91 KB
/
docker-compose.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
version: '3.8'
services:
tron_witness1:
image: tronprotocol/java-tron:latest
container_name: tron_witness1
networks:
- tron_private_network
deploy:
resources:
limits:
memory: 16g
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.
command: >
-jvm "{-Xmx16g -Xms12g -XX:+UseConcMarkSweepGC}" -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: 16g
# volumes:
# - ../conf:/java-tron/conf
# command: >
# -jvm "{-Xmx16g -Xms12g -XX:+UseConcMarkSweepGC}"
# -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: 16g
volumes:
- ../conf:/java-tron/conf
command: >
-jvm "{-Xmx16g -Xms12g -XX:+UseConcMarkSweepGC}" -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: 16g
# volumes:
# - ../conf:/java-tron/conf
# command: >
# -jvm "{-Xmx16g -Xms12g -XX:+UseConcMarkSweepGC}"
# -c /java-tron/conf/private_net_config_others.conf
networks:
tron_private_network:
driver: bridge