-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 882 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 882 Bytes
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
services:
ganache:
build:
context: "./contract"
dockerfile: "Dockerfile_ganache"
container_name: "ganache"
ports:
- "7545:7545"
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- "./key:/app/key"
truffle:
depends_on:
- ganache
build:
context: "./contract"
dockerfile: "Dockerfile_truffle"
container_name: "truffle"
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- "./truffle_build:/app/build"
ports:
- "4005:4005"
node:
depends_on:
- truffle
build: "./server"
container_name: "node"
ports:
- "443:443"
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- "./truffle_build/contracts:/usr/src/app/src/blockchain/contract_json"
- "./key:/usr/src/app/src/config/key"
restart: always