-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 957 Bytes
/
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
version: '3'
services:
mongo:
image: mongo:4.2.3-bionic
container_name: peer-review-mongo
volumes:
- /data/db
ports:
- "27017:27017"
environment:
- NODE_ENV=production
server:
build:
context: ./server/
dockerfile: Dockerfile
container_name: peer-review-server
working_dir: /home/node/app
volumes:
# indexer needs to access contract builds.
- ./client/src/contracts/:/home/node/app/indexer/contracts
depends_on:
- mongo
environment:
- NODE_ENV=production
- MONGO_URL=mongodb://mongo/
- PORT=3000
- DOCKER=yes
env_file:
- .env
ports:
- "3000:3000"
restart: always
client:
build:
context: ./client/
dockerfile: Dockerfile
container_name: peer-review-client
working_dir: /home/node/app
depends_on:
- server
expose:
- "80"
ports:
- "80:80"
restart: always