-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (55 loc) · 1.6 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
63
64
65
version: '2.0'
services:
front-end:
container_name: frontEnd
image: front-end
build: ./UI
ports:
- '4200:4200'
- '80:80'
volumes:
- './UI/src:/usr/share/workdir/UI/src'
- './UI/truffle:/usr/share/workdir/UI/truffle'
command: bash -c "ls && (cd ./truffle && rm -r ./build && truffle migrate --force) && node patch.js && ng build && cp nginx.conf /etc/nginx/nginx.conf && nginx -g 'daemon off;'"
# command: bash -c "ls && (cd ./truffle && rm -r ./build && truffle compile) && node patch.js && ng build && cp nginx.conf /etc/nginx/nginx.conf && nginx -g 'daemon off;'"
depends_on:
- 'geth'
- 'dbcom'
- 'tmplt'
geth:
container_name: geth
image: geth
build: ./geth
ports:
- '8545:8545'
- '30303:30303'
- '30303:30303/udp'
command: --identity "miner" --networkid 4002 --datadir data --port "30303" --rpc --rpcport "8545" --rpcaddr="0.0.0.0" --rpcvhosts="*" --unlock 0,1,2,3,4 --password password.txt --ipcpath "~/.ethereum/geth.ipc" --rpccorsdomain "*" --rpcapi "db,eth,net,web3,personal" --mine --minerthreads=2
depends_on:
- 'dbcom'
- 'tmplt'
dbcom:
container_name: dbcom
image: dbcom
build: ./nodeServer
ports:
- '4000:4000'
links:
- mongo
command: node app.js
depends_on:
- 'mongo'
mongo:
container_name: mongo
image: mongo
volumes:
- './mongo/data:/data/db'
ports:
- '27017:27017'
tmplt:
container_name: tmplt
image: tmplt
build: ./tmplt
ports:
- '3000:3000'
command: node app.js