forked from casper-ecosystem/nft-gallery-web3-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.22 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
version: '3.8'
services:
middleware:
container_name: barebone_middleware
build:
context: .
dockerfile: ./middleware/Dockerfile
environment:
- MIDDLEWARE_PORT
- MONGO_URL
- MONGO_DB_NAME
- MONGO_USERNAME
- MONGO_PASSWORD
- CHAIN_RPC_URL
- CHAIN_NET_NAME
- CHAIN_EE_URL
- CHAIN_CONTRACT_ADDR
- CHAIN_CONTRACT_PACKAGE_ADDR
- CHAIN_PRIV_KEY_VARIANT
- CHAIN_PRIV_KEY_BASE64
ports:
- 4000:4000
networks:
- server-network
volumes:
- ./middleware:/usr/src/app
- /usr/src/app/node_modules
restart: unless-stopped
frontend:
container_name: barebone_frontend
build:
context: .
dockerfile: ./frontend/Dockerfile
args:
- REACT_APP_MIDDLEWARE_URL=${MIDDLEWARE_URL}
- REACT_APP_MIDDLEWARE_PORT=${MIDDLEWARE_PORT}
- REACT_APP_TOTAL_NFTS_NUM=${TOTAL_NFTS_NUM}
environment:
- REACT_APP_MIDDLEWARE_URL=${MIDDLEWARE_URL}
- REACT_APP_MIDDLEWARE_PORT=${MIDDLEWARE_PORT}
- REACT_APP_TOTAL_NFTS_NUM=${TOTAL_NFTS_NUM}
ports:
- 3000:3000
volumes:
- ./frontend:/usr/src/app
restart: unless-stopped
networks:
server-network: