-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
60 lines (54 loc) · 1.19 KB
/
Copy pathcompose.yaml
File metadata and controls
60 lines (54 loc) · 1.19 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
name : devops_2
services:
order:
container_name: order
image: revanth7733/order_service:latest
depends_on:
rabbitmq :
condition: service_healthy
product:
container_name: product
image: revanth7733/product_service:latest
depends_on:
rabbitmq :
condition: service_healthy
user:
container_name: user
image: revanth7733/user_service:latest
depends_on:
rabbitmq :
condition: service_healthy
redis :
condition: service_healthy
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.13.4-alpine
volumes:
- rabbitmq_db:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
interval: 3s
timeout: 3s
retries: 5
redis:
container_name: redis
image: redis:7.2.5-alpine
volumes:
- redis_db:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 3s
retries: 5
nginx:
container_name: nginx
image: revanth7733/nginx_rev_proxy:latest
ports:
- "3000:80"
depends_on:
- order
- product
- user
volumes:
rabbitmq_db:
redis_db: