-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (70 loc) · 1.46 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
75
76
77
78
version: '2.3'
services:
base-app:
build:
context: .
target: development
working_dir: /boilerplate
environment:
- DOTENV_PATH=.env.example
volumes:
- ./:/boilerplate
- /boilerplate/node_modules
app:
extends: base-app
depends_on:
database:
condition: service_healthy
environment:
- NODE_ENV=development
expose:
- 5678
ports:
- "5678:5678"
command: npm run start
app-lint:
extends: base-app
command: npm run lint
app-test:
extends: base-app
depends_on:
database:
condition: service_healthy
environment:
- NODE_ENV=test
command: npm run test
app-test-integration:
extends: base-app
depends_on:
database:
condition: service_healthy
environment:
- NODE_ENV=test
command: npm run test:integration
app-test-e2e:
extends: base-app
depends_on:
database:
condition: service_healthy
environment:
- NODE_ENV=test
command: npm run test:e2e
app-test-unit:
extends: base-app
depends_on:
database:
condition: service_healthy
environment:
- NODE_ENV=test
command: npm run test:unit
database:
image: postgres:10.1-alpine
environment:
- POSTGRES_PASSWORD=Boilerplate123$$
ports:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5