-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·50 lines (43 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
executable file
·50 lines (43 loc) · 1.4 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
version: "3"
services:
mongodb:
image: mongo:latest
volumes:
- mongo-data:/data/db
super-api:
image: node:latest
command: /bin/bash -c "./node_modules/.bin/nodemon --delay 2 --watch dist --inspect=0.0.0.0:9229 ./dist/server.js | ./node_modules/.bin/bunyan --color"
working_dir: /app
depends_on:
- mongodb
ports:
- 3636:3636
- 9229:9229
volumes:
- .:/app
environment:
- NODE_ENV=development
- LOG_LEVEL=trace
- API_URL=http://localhost
- API_PORT=3636
- ROOT_PASSWD=root
- JWT_SECRET=jwt_super_secret
- MONGO_URL=mongodb://mongodb:27017/masuperdb
super-api-test:
image: node:latest
command: /bin/bash -c "set -o pipefail && ./node_modules/.bin/nyc --reporter=html ./node_modules/.bin/mocha --colors --no-timeouts ./dist/tests/tests.js | ./node_modules/.bin/bunyan --color"
working_dir: /app
depends_on:
- mongodb
volumes:
- .:/app
environment:
- NODE_ENV=test
- LOG_LEVEL=debug
- API_URL=http://localhost
- API_PORT=3637
- ROOT_PASSWD=root
- JWT_SECRET=jwt_super_secret
- MONGO_URL=mongodb://mongodb:27017/masuperdb
volumes:
mongo-data: