-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.04 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
version: '3'
services:
world:
build:
context: ./backend/world/
dockerfile: ./Dockerfile
volumes:
- ./backend/world/src:/usr/src/app/src
environment:
- MONGO_URL=mongodb://mongo:27017/world
- ETHEREUM_URL=ws://ethereum-node:8545
- CONTRACTS_URL=http://contracts:9002
command: 'npm run dev'
ports:
- '9001:9001'
depends_on:
- ethereum-node
- mongo
- contracts
contracts:
build:
context: ./backend/ethereum/
dockerfile: ./Dockerfile
volumes:
- ./backend/ethereum/src:/usr/src/app/src
- ./backend/ethereum/build/contracts:/usr/src/app/build/contracts
environment:
- MONGO_URL=mongodb://mongo:27017/contracts
- ETHEREUM_PROTOCOL=http
- ETHEREUM_HOST=ethereum-node
command: 'npm run start'
ports:
- '9002:9002'
depends_on:
- ethereum-node
- mongo
mongo:
image: mongo:4.0.6
ports:
- 27017:27017
ethereum-node:
image: trufflesuite/ganache-cli:v6.4.2
ports:
- 8545:8545