-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.16 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
version: '3'
services:
mongo:
container_name: 'mongo'
image: mongo:latest
ports:
- "27017:27017"
networks:
- app-network
ganache:
container_name: 'ganache'
image: trufflesuite/ganache-cli:latest
ports:
- "8545:8545"
command:
- "-m"
- "myth like bonus scare over problem client lizard pioneer submit female collect" # !DON'T USE THIS IN PRODUCTION
- "--accounts=20" # 20 available accounts
- "--networkId=123456" # Sets a chain ID of 123456
- "--defaultBalanceEther=1000" # Optional: Ensure each account has enough Ether (default is 100).
networks:
- app-network
server:
container_name: 'server'
build:
context: ./server
ports:
- "4000:4000"
depends_on:
- mongo
- ganache
networks:
- app-network
volumes:
- './server:/usr/src/app'
client:
container_name: 'client'
volumes:
- "./client/src:/usr/src/app/src"
build:
context: ./client
ports:
- "3000:3000"
networks:
- app-network
depends_on:
- server
networks:
app-network:
driver: bridge