-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 888 Bytes
/
docker-compose.yaml
File metadata and controls
40 lines (37 loc) · 888 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
version: "3.9"
services:
course-service:
build: ./course-service
container_name: course-service
ports:
- 5001:5001
networks:
- microservice-assignment-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001/api/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
order-service:
build: ./order-service
container_name: order-service
ports:
- 5002:5002
networks:
- microservice-assignment-network
env_file:
- order-service/.env
depends_on:
# - course-service
course-service:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5002/api/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
networks:
microservice-assignment-network:
driver: bridge