-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 890 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 890 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
api:
build: .
links:
- 'mongo:mongo'
environment:
NODE_ENV: 'development'
volumes:
- .:/app
- /app/node_modules
ports:
- "0.0.0.0:9000:9000"
command: sh -c "mkdir -p dist && touch ./dist/app.js && nodemon --delay 500ms --watch dist ./dist/app.js"
transpiler:
build: .
volumes:
- .:/app
- /app/node_modules
command: ["tsc", "-w"]
linter:
build: .
volumes:
- .:/app
- /app/node_modules
command: nodemon --delay 500ms --exec "find . -path ./ -prune -o -path ./node_modules -prune -o -path ./dist -prune -o -name '*.ts' -print | xargs tslint"
mongo:
image: mongo:3.6.6
ports:
- "27017"
command: ["mongod"]
mocha:
build: .
volumes:
- .:/app
- /app/node_modules
links:
- 'mongo:mongo'
command: nodemon --delay 500ms --exec 'mocha --recursive --bail --colors' ./dist
environment:
NODE_ENV: 'test'