-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 932 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 932 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
43
44
45
46
47
48
49
50
version: '3.7'
services:
db:
image: mongo:latest
restart: always
volumes:
- wordnet_data:/data/db
environment:
- MONGO_INITDB_DATABASE=Wordnet
expose:
- 27017
ports:
- 27017:27017
server:
build:
context: ./server
dockerfile: Dockerfile
command: [sh, -c, "npm run start"]
volumes:
- node_modules_server:/usr/src/app/node_modules
environment:
- DO_IMPORT_WORDNET=0
- NODE_ENV=development
expose:
- 8080
ports:
- "8080:8080"
restart: on-failure
depends_on:
- db
client:
build:
context: ./client
dockerfile: Dockerfile
command: [sh, -c, "npm run start"]
volumes:
- node_modules_client:/usr/src/app/node_modules
ports:
- "3000:3000"
restart: on-failure
depends_on:
- server
volumes:
wordnet_data:
node_modules_client:
node_modules_server: