-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.07 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
version: "3.4"
services:
truffle:
build:
context: ./contract
target: truffle
container_name: truffle
working_dir: /home/app
command: bash -c "rm -rf build/contracts/* && truffle deploy --reset"
depends_on:
- ganache
networks:
- blockchain
volumes:
- ${PWD}/shared/truffle:/home/app/build/contracts/:rw
- /home/app/node_modules
ganache:
build:
context: ./contract
target: ganache
container_name: ganache
ports:
- 8545:8545
volumes:
- ${PWD}/shared/ganache/:/home/shared/:rw
networks:
- blockchain
frontend:
build:
context: frontend
working_dir: /project
command: bash -c "python /wait-for-deploy.py && flask run --host=0.0.0.0"
container_name: frontend
ports:
- "5000:5000"
volumes:
- ${PWD}/shared/:/project/blockchain_conf:ro
- ${PWD}/database/:/project/database:rw
depends_on:
- ganache
- truffle
networks:
- blockchain
volumes:
blockchain_files:
networks:
blockchain:
driver: "bridge"