-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
77 lines (72 loc) · 1.95 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
71
72
73
74
75
76
77
version: '3.8'
services:
# Tron Quickstart - Local development blockchain
tron-quickstart:
image: trontools/quickstart:latest
container_name: justflash-local-node
ports:
- "9090:9090"
environment:
- ACCOUNTS_AMOUNT=10
- ACCOUNTS_DEFAULT_BALANCE=100000
- MNEMONIC=candy maple cake sugar pudding cream honey rich smooth crumble sweet treat
volumes:
- tron-data:/tron
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090/wallet/getnowblock"]
interval: 30s
timeout: 10s
retries: 5
networks:
- justflash-network
# Contract development environment
contracts:
build:
context: .
dockerfile: Dockerfile.dev
container_name: justflash-contracts
volumes:
- ./contracts:/app/contracts
- ./migrations:/app/migrations
- ./scripts:/app/scripts
- ./test:/app/test
- ./tronbox.js:/app/tronbox.js
- ./package.json:/app/package.json
- node_modules:/app/node_modules
environment:
- HOST_PORT=9090
- PRIVATE_KEY_DEV=da146374a75310b9666e834ee4ad0866d6f4035967bfc76217c5a495fff9f0d0
depends_on:
tron-quickstart:
condition: service_healthy
networks:
- justflash-network
command: ["tail", "-f", "/dev/null"]
# Frontend development server
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: justflash-frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
environment:
- VITE_TRON_NETWORK=development
- VITE_FLASH_LOAN_POOL_ADDRESS=
- VITE_FEE_COLLECTOR_ADDRESS=
- VITE_POOL_REGISTRY_ADDRESS=
depends_on:
- tron-quickstart
networks:
- justflash-network
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
volumes:
tron-data:
node_modules:
frontend_node_modules:
networks:
justflash-network:
driver: bridge