forked from PicPay/picpay-jr-devops-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (41 loc) · 774 Bytes
/
docker-compose.yaml
File metadata and controls
45 lines (41 loc) · 774 Bytes
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
name: picpay-jr-devops-challenge
services:
web:
build: services/frontend
ports:
- "3000:3000"
depends_on:
writer:
condition: service_started
reader:
condition: service_started
reader:
build: services/reader
ports:
- "8081:8081"
networks:
- backend
depends_on:
redis:
condition: service_healthy
writer:
build: services/writer
ports:
- "8080:8080"
networks:
- backend
depends_on:
redis:
condition: service_healthy
redis:
image: "redis:alpine"
networks:
- backend
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
networks:
backend: