-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.17 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
version: '3.5'
services:
setup:
image: node:10
container_name: rw_setup
environment:
- NODE_ENV=development
volumes:
- type: bind
source: .
target: /home/node/app
working_dir: /home/node/app
command: "npm ci"
frontend:
image: node:10
container_name: rw_frontend
environment:
- NODE_ENV=development
volumes:
- type: bind
source: .
target: /home/node/app
ports:
- "6006:6006"
working_dir: /home/node/app
command: "npm run-script start -- --ci --quiet"
links:
- "backend"
backend:
image: node:10
container_name: rw_backend
environment:
- NODE_ENV=development
ports:
- "3000:3000"
volumes:
- type: bind
source: .
target: /home/node/app
working_dir: /home/node/app
command: "npm run-script server -- --quiet --host 0.0.0.0"
app:
# Don't actually use anything here; just bootstrap required services.
# We do this to avoid running the setup command everytime.
# We could do that, but this is quicker...
image: node:10
container_name: rw_bootstrap
links:
- frontend
- backend