-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
71 lines (65 loc) · 2.43 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
version: "3.0"
services:
# assumption: this just shares the node modules and exits
node-modules:
image: onelinecode-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: onelinecode-node-shell:latest
volumes:
# get node_modules from shared volume
- "shared-node-modules:/home/node/node_modules/"
- "./src:/home/node/src"
- "./dist:/home/node/dist"
- "./test:/home/node/test"
- "./coverage:/home/node/coverage"
- "./package.json:/home/node/package.json"
- "./.c8rc.js:/home/node/.c8rc.js:ro"
- "./.eslintrc.js:/home/node/.eslintrc.js:ro"
- "./.eslintignore:/home/node/.eslintignore:ro"
- "./.npmrc:/home/node/.npmrc:ro"
- "./rollup.config.js:/home/node/rollup.config.js:ro"
- "./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: onelinecode-node-shell:latest
# volumes:
# # get node_modules from shared volume
# - "shared-node-modules:/home/node/node_modules/:ro"
# - "./src:/home/node/src: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: onelinecode-node-shell:latest
# volumes:
# # get node_modules from shared volume
# - "shared-node-modules:/home/node/node_modules/:ro"
# - "./src:/home/node/src:ro"
# - "./test:/home/node/test:ro"
# - "./.c8rc.js:/home/node/.c8rc.js:ro"
# - "./package.json:/home/node/package.json:ro"
# depends_on:
# - node-modules
# - node-shell
# command:
# "yarn run mocha-watch"
volumes:
shared-node-modules: