forked from gtw-lt/docker-java-tron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-nile.yml
61 lines (60 loc) · 1.59 KB
/
docker-compose-nile.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
services:
tron-nile-mongodb:
container_name: tron-nile-mongodb
image: mongo
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
- DB_NAME=eventlog
- DB_USER
- DB_PASSWORD
volumes:
- tron-nile-mongodb:/data/db
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
tron-nile-node:
container_name: tron-nile-node
build:
context: ./tron-node/
args:
- JAVA_TRON_VERSION=GreatVoyage-v4.6.0
environment:
- NETWORK=nile
- 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-nile-mongodb:27017
- EVENT_PLUGIN_MONGO_DB_USERNAME=${DB_USER}
- EVENT_PLUGIN_MONGO_DB_PASSWORD=${DB_PASSWORD}
- EVENT_PLUGIN_BLOCK_TRIGGER_ENABLED=true
- EVENT_PLUGIN_TRANSACTION_TRIGGER_ENABLED=true
- EVENT_PLUGIN_CONTRACTEVENT_TRIGGER_ENABLED=true
- EVENT_PLUGIN_STARTING_BLOCK = 0
ports:
- "18090:18090"
- "18091:18091"
restart: always
volumes:
- tron-nile-node:/data
depends_on:
- tron-nile-mongodb
tron-nile-eventquery:
container_name: tron-nile-eventquery
build:
context: ./tron-eventquery/
environment:
- NETWORK=nile
- DB_HOST=tron-nile-mongodb
- DB_PORT=27017
- DB_USER
- DB_PASSWORD
ports:
- 127.0.0.1:8080:8080
depends_on:
- tron-nile-node
volumes:
tron-nile-mongodb:
tron-nile-node: