-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 843 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 843 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
transpiler:
build: .
volumes_from:
- data
# typescript should watch the src directory
command: tsc -w --outDir dist/
server:
build: .
volumes_from:
- data
# nodemon should watch the dist directory
command: sh -c "touch dist/index.js && nodemon dist/index.js -d 300ms -w dist"
environment:
NODE_ENV: 'development'
mocha:
build: .
volumes_from:
- data
# nodemon should watch the dist directory
command: nodemon --watch dist -e js --delay 500ms --exec 'mocha --recursive --bail --colors --timeout 8000' ./dist/
tty: true
environment:
NODE_ENV: 'test'
data:
build: .
volumes:
- .:/app # share your code with the containers
- /app/dist # container has its own dist directory
- /app/node_modules # container has its own node_modules directory
command: 'true'