-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (71 loc) · 1.71 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3.3"
services:
rest-api:
image: "node:14-alpine"
user: "node"
working_dir: /home/node/app
container_name: "slo-rest-api"
environment:
- NODE_ENV=development
- NODE_PORT=4500
- NODE_BASE=/
- NODE_ID_URL=/uuid/
- NODE_BACKEND_URL=http://slo-graphql:3000
- NODE_SEARCH_URL=http://slo-search:3001
- NODE_DATA_URL=http://localhost:4500/
volumes:
- ./curriculum-rest-api/:/home/node/app
ports:
- "4500:4500"
depends_on:
- graphql
entrypoint: ["/bin/sh","-c"]
command:
- |
npm install
npm start
graphql:
image: "node:14-alpine"
user: "node"
working_dir: /home/node/app
container_name: "slo-graphql"
environment:
- NODE_ENV=development
- NODE_PORT=3000
volumes:
- ./curriculum-graphql-server/:/home/node/app
ports:
- "3000:3000"
entrypoint: ["/bin/sh","-c"]
command:
- |
npm install
cd json-graphql-server
npm install --ignore-scripts
NODE_ENV=production ./node_modules/.bin/webpack
cd -
npm run combine
npm start
search-server:
image: "node:14-alpine"
user: "node"
working_dir: /home/node/app
container_name: "slo-search"
environment:
- NODE_ENV=development
- NODE_PORT=3001
- DATA_DIR=/home/node/app/curriculum
volumes:
- ./curriculum-search-server/:/home/node/app
- ./curriculum-graphql-server/data/:/home/node/app/curriculum
ports:
- "3001:3001"
entrypoint: ["/bin/sh","-c"]
command:
- |
npm install
npm start
volumes:
curriculum-graphql-server:
curriculum-rest-api:
curriculum-search-server: