forked from gnosis/dx-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (74 loc) · 1.66 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
version: '3.4'
services:
setup:
command: npm run setup
# command: ./node_modules/.bin/truffle migrate --network ethereum
# command: ./node_modules/.bin/truffle migrate --network ethereum && cd node_modules/@josojo/dutch-exchange-smartcontracts && /usr/src/app/node_modules/.bin/truffle migrate --network ethereum && && npm start
build:
context: '.'
depends_on:
- ethereum
links:
- ethereum
environment:
ETHEREUM_RPC_URL: http://ethereum:8545
deploy:
restart_policy:
condition: on-failure
volumes:
- .:/usr/src/app
ports:
- "8080:8080"
networks:
- webnet
api:
command: npm run api
hostname: dx
build:
context: '.'
depends_on:
- setup
- ethereum
links:
- ethereum
environment:
ETHEREUM_RPC_URL: http://ethereum:8545
deploy:
restart_policy:
condition: on-failure
volumes:
- .:/usr/src/app
ports:
- "8080:8080"
networks:
- webnet
bots:
command: src/run-bots.sh
hostname: bots
build:
context: '.'
depends_on:
- setup
- ethereum
deploy:
restart_policy:
condition: on-failure
ports:
- "8081:8081"
volumes:
- .:/usr/src/app
networks:
- webnet
ethereum:
hostname: ethereum
image: trufflesuite/ganache-cli:latest
command: ganache-cli -d --mnemonic 'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat' --defaultBalanceEther '500'
ports:
- "8545:8545"
networks:
- webnet
networks:
# Define the webnet network
webnet:
# volumes::
# - .:/usr/src/app/