forked from lacchain/Ethereum-Benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (72 loc) · 2.32 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
version: '3'
services:
server1:
build:
dockerfile: Dockerfile.dev
context: ./server
volumes:
- /app/node_modules
- ./server:/app
environment:
- TEST_TYPE=1 # 0: ether sending test, 1: smart contract test
- SMART_CONTRACT_OPTION=0 #0: lightweigth SC test, 1: David19-Smart contract test
- DESIRED_RATE_TX=1
- TEST_TIME_MINUTES=1
- RPC_URL=http://RPC_URL:PORT
- MAX_GAS_PER_TX=1000000 #not necessary to change this unless you change your BLOCKPERIODSECONDS.
- NUMBER_OF_CONTAINERS=1
- STORE_DATA=TRUE
#- NODE_TLS_REJECT_UNAUTHORIZED=0
############ SETTING FOR ETHER TESTING (IF REQUIRED) ##############
- AMOUNT_DATA_BYTES=0
############ SETTING FOR SMART CONTRACT TESTING ##############
#- SMART_CONTRACT_ADDRESS=0x4cf5ff8672BC73A108744927083893662b3C38D5 #to avoid deploying a contract again
network_mode: host #using localhost instead of isolated network
server2:
build:
dockerfile: Dockerfile.dev
context: ./server
volumes:
- /app/node_modules
- ./server:/app
environment: &environment
- TEST_TYPE=1
- DESIRED_RATE_TX=1
- TEST_TIME_MINUTES=1
- RPC_URL=http://RPC_URL:PORT
- MAX_GAS_PER_TX=80000000
- NUMBER_OF_CONTAINERS=1
- STORE_DATA=FALSE
#- NODE_TLS_REJECT_UNAUTHORIZED=0
############ SETTING FOR ETHER TESTING (IF REQUIRED) ##############
- AMOUNT_DATA_BYTES=0
############ SETTING FOR SMART CONTRACT TESTING ##############
- SMART_CONTRACT_ADDRESS=0x4cf5ff8672BC73A108744927083893662b3C38D5 #0x920BeC2BEcba71B34E619bBA1902Bfd44D792483 #0x68a185CAb9607B9BEb0B210Bf7CC320f3b3A3eFB
network_mode: host
# server3:
# build:
# dockerfile: Dockerfile.dev
# context: ./server
# volumes:
# - /app/node_modules
# - ./server:/app
# environment: *environment
# network_mode: host
# server4:
# build:
# dockerfile: Dockerfile.dev
# context: ./server
# volumes:
# - /app/node_modules
# - ./server:/app
# environment: *environment
# network_mode: host
# server5:
# build:
# dockerfile: Dockerfile.dev
# context: ./server
# volumes:
# - /app/node_modules
# - ./server:/app
# environment: *environment
# network_mode: host