-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 990 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 990 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
41
42
version: "3.9"
services:
rpc:
image: node:12
command: bash -c "npm install && npx truffle develop"
working_dir: /app
volumes:
- ./contracts:/app
ports:
- 9545:9545
api:
image: node:12
command: bash -c "npm install && npm run dev"
working_dir: /app
volumes:
- ./api:/app
- ./storage:/app/storage
ports:
- 4000:4000
environment:
ETHER_RPC: http://rpc:9545
MONGO_URI: mongodb://mongo:27017
NFT_STORAGE_KEY: ${NFT_STORAGE_KEY}
ETHER_CONTRACT: ${CONTRACT_ADDRESS}
app:
image: node:12
command: bash -c "npm install && npm start"
working_dir: /app
volumes:
- ./app:/app
ports:
- 3000:3000
environment:
PROXY: http://api:4000
mongo:
image: mongo:4.4
ports:
- 27017:27017