-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 978 Bytes
/
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
version: "3"
services:
testnet:
build:
context: ./packages/contracts/
dockerfile: ../../dockerfiles/Contract.dockerfile
ports:
- "5000:5000"
command: ganache-cli --db=/data -i 20200406 -p 5000 --deterministic --host 0.0.0.0 --blockTime 13
coordinator:
build:
context: ./
dockerfile: ./dockerfiles/Coordinator.dockerfile
ports:
- "8888:8888"
links:
- 'testnet:testnet'
depends_on:
- 'testnet'
command: 'node /proj/packages/cli/dist/apps/coordinator/cli.js --ws ws://testnet:5000 --config /proj/packages/cli/coordinator.json'
wallet:
build:
context: ./
dockerfile: ./dockerfiles/Cli.dockerfile
ports:
- "4321:4321"
links:
- 'testnet:testnet'
- 'coordinator:coordinator'
depends_on:
- 'testnet'
command: sh -c "sleep 5s && gotty -w --port 4321 node /proj/packages/cli/dist/apps/wallet/cli.js --config /proj/packages/cli/wallet.dev.json"