forked from gtw-lt/docker-java-tron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (83 loc) · 2.3 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
x-logging:
&default-logging
driver: "json-file"
options:
max-file: "1"
max-size: "100m"
services:
tron-mongodb:
container_name: tron-mongodb
image: mongo:4.4
restart: always
logging: *default-logging
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
DB_NAME: eventlog
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
volumes:
- ./data/mongo/:/data/db
- ./db-scripts/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
tron-node:
container_name: tron-node
build:
context: ./tron-node/
args:
- JAVA_TRON_VERSION=${JAVA_TRON_VERSION:-GreatVoyage-v4.7.6}
env_file:
- ./tron.conf
logging: *default-logging
environment:
NETWORK: mainnet
VM_MAX_TIME_RATIO: 20.0
P2P_PORT: 28888
FULL_NODE_PORT: 18090
SOLIDITY_NODE_PORT: 18091
EVENT_PLUGIN_ENABLED: 'true'
EVENT_PLUGIN_BACKEND: mongodb
EVENT_PLUGIN_MONGO_SERVER: tron-mongodb:27017
EVENT_PLUGIN_MONGO_DB_USERNAME: ${DB_USER}
EVENT_PLUGIN_MONGO_DB_PASSWORD: ${DB_PASSWORD}
EVENT_PLUGIN_BLOCK_TRIGGER_ENABLED: false
EVENT_PLUGIN_TRANSACTION_TRIGGER_ENABLED: true
EVENT_PLUGIN_CONTRACTEVENT_TRIGGER_ENABLED: true
EVENT_PLUGIN_SOLIDITY_BLOCK_TRIGGER_ENABLED: true
ports:
- "127.0.0.1:18090:18090"
- "127.0.0.1:18091:18091"
restart: always
volumes:
- ./data/node/:/data
depends_on:
- tron-mongodb
tron-eventquery:
container_name: tron-eventquery
build:
context: ./tron-eventquery/
environment:
NETWORK: mainnet
DB_HOST: tron-mongodb
DB_NAME: eventlog
DB_PORT: 27017
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
ports:
- 127.0.0.1:8080:8080
logging: *default-logging
restart: always
depends_on:
- tron-node
tron-lifecycle-manager:
container_name: tron-lifecycle-manager
build:
context: ./tron-lifecycle-manager/
logging: *default-logging
environment:
MONGO_HOST: tron-mongodb
MONGO_DBNAME: eventlog
MONGO_PORT: 27017
MONGO_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
env_file:
- ./tron.conf