-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.14 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
services:
blockchain:
image: trufflesuite/ganache-cli:latest
ports:
- 8545:8545
# logging:
# driver: none
database:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: test
MONGO_INITDB_ROOT_PASSWORD: test
logging:
driver: none
listener:
depends_on:
- blockchain
- database
build:
context: ./
dockerfile: blockchain/Dockerfile
environment:
GANACHE_HOST: blockchain
DB_HOST: database
volumes:
- "contracts:/eleos/blockchain/build/contracts"
backend:
depends_on:
- blockchain
- database
ports:
- 8080:8080
build:
context: ./
dockerfile: backend/Dockerfile
environment:
DB_HOST: database
API_PORT: 8080
frontend:
depends_on:
- blockchain
- backend
ports:
- 80:3000
build:
context: ./
dockerfile: frontend/Dockerfile
environment:
PORT: 3000
HOST: 0.0.0.0
API_BASEURL: http://localhost:8080
GANACHE_BASEURL: http://localhost:8545
volumes:
- "contracts:/eleos/frontend/static"
volumes:
contracts: