-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
74 lines (63 loc) · 1.34 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
72
73
74
version: '2.4'
services:
mongo:
image: mongo:4
container_name: libras_mongo
cpu_shares: 512
mem_limit: 512m
memswap_limit: 512m
mem_reservation: 500m
ports:
- 27017:27017
mongo-seed:
build: data
container_name: libras_mongo_seed
links:
- mongo
mongo-express:
image: mongo-express
container_name: libras_mongo_express
ports:
- 8081:8081
node: &node
image: node:12-alpine
container_name: libras_node
volumes:
- ./:/node
working_dir: /node
api:
<<: *node
container_name: libras
cpu_shares: 512
mem_limit: 512m
memswap_limit: 512m
mem_reservation: 500m
ports:
- 3000:3000
command: npm start
style:
<<: *node
container_name: libras_test_style
command: npm run test:style
unit:
<<: *node
container_name: libras_test_unit
command: npm run test:unit
integration:
<<: *node
container_name: libras_test_integration
command: npm run test:integration
performance:
<<: *node
container_name: libras_test_performance
depends_on:
- api
command: npm run test:performance -- -e docker
cover:
<<: *node
container_name: libras_test_cover
command: npm run cover
security:
<<: *node
container_name: libras_test_security
command: npm run test:security