-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1019 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3.2"
services:
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
args:
- REACT_APP_API=${REACT_APP_API}
ports:
- target: 3000
published: 3000
restart: on-failure
backend:
build:
context: .
dockerfile: Dockerfile.backend
ports:
- target: 5000
published: 5000
environment:
MONGO: ${MONGO}
CORS_ORIGIN: ${CORS_ORIGIN}
depends_on:
- mongo
restart: on-failure
mongo:
image: mongo:4
ports:
- target: 27017
published: 27017
volumes:
- .mongo/db/:/data/db/
restart: on-failure
logging:
driver: none
blockchain:
build:
context: .
dockerfile: Dockerfile.blockchain
depends_on:
- ganache
environment:
- HOST=${NETWORK_HOST}
volumes:
- ./blockchain/build/:/usr/src/blockchain/build/
ganache:
build:
context: .
dockerfile: Dockerfile.ganache
ports:
- "8545:8545"