-
Notifications
You must be signed in to change notification settings - Fork 83
/
docker-compose.yml
145 lines (128 loc) · 3.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: '3'
services:
matching-engine:
image: amp-matching-engine
ports:
- "8081:8081"
environment:
- AMP_ETHEREUM_NODE_WS_URL=ws://ethereum:8546
- AMP_MONGO_URL=mongodb
- AMP_MONGO_DBNAME
- AMP_REDIS_URL=redis://redis:6379
- AMP_RABBITMQ_URL=amqp://guest:guest@rabbitmq:5672
- AMP_EXCHANGE_CONTRACT_ADDRESS
- AMP_WETH_CONTRACT_ADDRESS
- AMP_FEE_ACCOUNT_ADDRESS
depends_on:
- mongodb
- rabbitmq
- redis
- ethereum
mongodb:
image: mongo:latest
container_name: "mongodb"
ports:
- '27017:27017'
rabbitmq:
image: rabbitmq
container_name: "rabbitmq"
ports:
- '5672:5672'
redis:
image: redis
container_name: "redis"
ports:
- '6379:6379'
ethereum:
image: ethereum/client-go
container_name: "ethereum"
volumes:
- ./${AMP_ETHEREUM_DATADIR}:/root/.ethereum/client-go
command: [
"--port", "3001",
"--networkid", $AMP_ETHEREUM_NETWORK_ID,
"--nodiscover",
"--datadir", $AMP_ETHEREUM_DATADIR,
"--maxpeers", "0",
"--rpc", "--rpcport", "8545", "--rpcaddr", "127.0.0.1",
"--ws", "--wsport", "8546", "--wsaddr", "0.0.0.0",
"--wsorigins", "*",
"--wsapi", "eth,net,web3,personal",
"--minerthreads", "1",
"--mine",
"--etherbase", $AMP_ETHERBASE,
"--rpccorsdomain", "*"
]
# geth \
# --port 3001 \
# --networkid 8888 \
# --nodiscover \
# --datadir="chain" \
# --maxpeers=0 \
# --rpc \
# --rpcport 8545 \
# --rpcaddr 127.0.0.1 \
# --rpcapi "eth,net,web3,personal" \
# -ws \
# --wsport 8546 \
# --wsaddr 0.0.0.0 \
# --wsorigins "*" \
# --wsapi "eth,net,web3,personal" \
# --minerthreads "1" \
# -mine \
# --etherbase "0xe8e84ee367bc63ddb38d3d01bccef106c194dc47" \
# --rpccorsdomain="*"
# version: '2'
# services:
# matching-engine:
# container_name: "matching-engine"
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - '8081:8081'
# links:
# - redis
# - rabbitmq
# - mongodb
# depends_on:
# - redis
# - rabbitmq
# - mongodb
# rabbitmq:
# container_name: "rabbitmq"
# image: rabbitmq
# ports:
# - '5672:5672'
# redis:
# container_name: "redis"
# image: redis
# ports:
# - '6379:6379'
# mongodb:
# image: mongo:latest
# container_name: "mongodb"
# ports:
# - '27017:27017'
# mongodb-seed:
# image: mongo:latest
# container_name: "mongodb-seed"
# links:
# - mongodb
# volumes:
# - ./utils/seed-data:/utils/seed-data
# depends_on:
# - mongodb
# command:
# - /bin/sh
# - -c
# - |
# mongo proofdex --eval "db.dropDatabase()"
# mongoimport --host mongodb --db proofdex --type json --file utils/seed-data/tokens.json
# mongoimport --host mongodb --db proofdex --type json --file utils/seed-data/pairs.json
# mongoimport --host mongodb --db proofdex --type json --file utils/seed-data/accounts.json
# # USEFUL COMMANDS TO BE REINCLUDED LATER
# # environment:
# # - MONGO_DATA_DIR=/data/db
# # - MONGO_LOG_DIR=/dev/null
# # command: mongod --smallfiles /--logpath=/dev/null