This repository was archived by the owner on Jul 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (65 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (65 loc) · 1.43 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
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.1'
services:
mongo:
image: mongo:3.6.4
container_name: arrecadar-mongo
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo localhost:27017 --quiet
interval: 5s
retries: 3
expose:
- 27017
environment:
MONGO_INITDB_ROOT_USERNAME: arrecadar
MONGO_INITDB_ROOT_PASSWORD: secret
base:
build:
context: .
args:
PRODUCTION: 'false'
volumes:
- ./server.js:/api/server.js
- ./app:/api/app
- ./bootstrap:/api/bootstrap
- ./config:/api/config
base-tests:
extends: base
volumes:
- ./tests:/api/tests
- ./.eslintrc.js:/api/.eslintrc.js
api:
extends: base
container_name: arrecadar-api
command: npm run dev
env_file: .env
ports:
- 3000:3000
depends_on:
mongo:
condition: service_healthy
lint:
extends: base-tests
container_name: arrecadar-lint
command: npm run lint
test:
extends: base-tests
container_name: arrecadar-test
command: npm run test
links:
- api
test-unit:
extends: base-tests
container_name: arrecadar-test
command: npm run test:unit
test-integration:
extends: base-tests
container_name: arrecadar-test
command: npm run test:integration
links:
- api
test-functional:
extends: base-tests
container_name: arrecadar-test
command: npm run test:functional
links:
- api