-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
62 lines (57 loc) · 1.25 KB
/
compose.yaml
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
services:
mongo:
image: mongo
restart: always
logging:
driver: none
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
backend-test:
build:
context: backend
dockerfile: ../Dockerfile.backend
environment:
DB_ADDRESS: mongodb://mongo:27017/mestodb
command: npm run lint
restart: 'no'
depends_on:
mongo:
condition: service_healthy
backend:
build:
context: backend
dockerfile: ../Dockerfile.backend
environment:
DB_ADDRESS: mongodb://mongo:27017/mestodb
depends_on:
mongo:
condition: service_healthy
ports:
- 3001:3000
healthcheck:
interval: 10s
timeout: 2s
start_period: 15s
retries: 5
test: node healthcheck.js
frontend-test:
build:
context: frontend
dockerfile: ../Dockerfile.frontend
command: yarn test:microfrontend
restart: 'no'
environment:
CI: true
frontend:
build:
context: frontend
dockerfile: ../Dockerfile.frontend
ports:
- 3000:3000
depends_on:
backend:
condition: service_healthy