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
47 lines (46 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 1.14 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
version: '3.8'
services:
tron-node1:
image: tronprotocol/java-tron:latest
container_name: tron-node1
networks:
- tron_network
deploy:
resources:
limits:
memory: 16g
ports:
- "8090:8090" # for external http API request
- "9527:9527" # used for metric API
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 -XX:+PrintGC}" -c ./conf/main_net_config.conf -d /java-tron/data
prometheus:
image: prom/prometheus:latest
container_name: prometheus
networks:
- tron_network
deploy:
resources:
limits:
memory: 1g
ports:
- "9090:9090" # used for external collect metrics
volumes:
- ./metric_conf/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana-oss
container_name: grafana
networks:
- tron_network
deploy:
resources:
limits:
memory: 1g
ports:
- "3000:3000"
networks:
tron_network:
driver: bridge