-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (66 loc) · 2.42 KB
/
docker-compose.yml
File metadata and controls
72 lines (66 loc) · 2.42 KB
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
version: "3.0"
services:
# assumption: this just shares the node modules and exits
node-modules:
image: lakka-node-modules:latest
volumes:
# create a named volume "node_modules"
- "shared-node-modules:/home/node/node_modules/"
command:
"tail -f /dev/null"
# shell
node-shell:
image: lakka-node-shell:latest
volumes:
# get node_modules from shared volume
- "shared-node-modules:/home/node/node_modules/"
- "./app:/home/node/app"
- "./dist:/home/node/dist"
- "./test:/home/node/test"
- "./coverage:/home/node/coverage"
- "./package.json:/home/node/package.json"
- "./.eslintrc.js:/home/node/.eslintrc.js:ro"
- "./.eslintignore:/home/node/.eslintignore:ro"
- "./.babelrc:/home/node/.babelrc"
- "./.mocharc.js:/home/node/.mocharc.js:ro"
- "./webpack.config.js:/home/node/webpack.config.js"
- "./yarn.lock:/home/node/yarn.lock"
depends_on:
- node-modules
command:
"tail -f /dev/null"
# container for eslint watcher
# $ docker-compose logs -f -t node-eslint-watch
node-eslint-watch:
image: lakka-node-shell:latest
volumes:
# get node_modules from shared volume
- "shared-node-modules:/home/node/node_modules/:ro"
- "./app:/home/node/app:ro"
- "./.eslintrc.js:/home/node/.eslintrc.js:ro"
- "./.eslintignore:/home/node/.eslintignore:ro"
- "./package.json:/home/node/package.json:ro"
depends_on:
- node-modules
- node-shell
command:
"yarn run eslint-watch"
# container for mocha watcher
# $ docker-compose logs -f -t node-mocha-watch
node-mocha-watch:
image: lakka-node-shell:latest
volumes:
# get node_modules from shared volume
- "shared-node-modules:/home/node/node_modules/:ro"
- "./app:/home/node/app:ro"
- "./test:/home/node/test:ro"
- "./package.json:/home/node/package.json:ro"
- "./.babelrc:/home/node/.babelrc:ro"
- "./.mocharc.js:/home/node/.mocharc.js:ro"
depends_on:
- node-modules
- node-shell
command:
"yarn run mocha-watch"
volumes:
shared-node-modules: