-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
123 lines (110 loc) · 3.68 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: '3.2'
services:
rabbitmq:
image: masstransit/rabbitmq
container_name: rabbitmq
hostname: rabbitmq
ports:
- 5672:5672
- 15672:15672
database:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
ports:
- 5432:5432
volumes:
- "./data:/var/lib/postgresql/data"
api_service:
image: api_service
container_name: api_service
restart: always
volumes:
- "./scripts/wait-for-it.sh:/app/wait-for-it.sh"
- "./appsettings/api_service.json:/app/appsettings.json"
ports:
- 80:80
depends_on:
- rabbitmq
entrypoint: ["./wait-for-it.sh", "-s", "rabbitmq:5672", "--", "dotnet", "ApiService.dll"]
cart_service:
image: cart_service
container_name: cart_service
restart: always
volumes:
- "./scripts/wait-for-it.sh:/app/wait-for-it.sh"
- "./appsettings/cart_service.json:/app/appsettings.json"
depends_on:
- rabbitmq
- database
entrypoint: ["./wait-for-it.sh", "-s", "rabbitmq:5672", "--", "dotnet", "CartService.dll"]
delivery_service:
image: delivery_service
container_name: delivery_service
restart: always
volumes:
- "./scripts/wait-for-it.sh:/app/wait-for-it.sh"
- "./appsettings/delivery_service.json:/app/appsettings.json"
depends_on:
- rabbitmq
entrypoint: ["./wait-for-it.sh", "-s", "rabbitmq:5672", "--", "dotnet", "DeliveryService.dll"]
feedback_service:
image: feedback_service
container_name: feedback_service
restart: always
volumes:
- "./scripts/wait-for-it.sh:/app/wait-for-it.sh"
- "./appsettings/feedback_service.json:/app/appsettings.json"
depends_on:
- rabbitmq
- database
entrypoint: ["./wait-for-it.sh", "-s", "rabbitmq:5672", "--", "dotnet", "FeedbackService.dll"]
history_service:
image: history_service
container_name: history_service
restart: always
volumes:
- "./scripts/wait-for-it.sh:/app/wait-for-it.sh"
- "./appsettings/history_service.json:/app/appsettings.json"
depends_on:
- rabbitmq
- database
entrypoint: ["./wait-for-it.sh", "-s", "rabbitmq:5672", "--", "dotnet", "HistoryService.dll"]
orchestrator_service:
image: orchestrator_service
container_name: orchestrator_service
restart: always
volumes:
- "./scripts/wait-for-it.sh:/app/wait-for-it.sh"
- "./appsettings/orchestrator_service.json:/app/appsettings.json"
depends_on:
- rabbitmq
- database
entrypoint: ["./wait-for-it.sh", "-s", "rabbitmq:5672", "--", "dotnet", "OrderOrchestratorService.dll"]
payment_service:
image: payment_service
container_name: payment_service
restart: always
volumes:
- "./scripts/wait-for-it.sh:/app/wait-for-it.sh"
- "./appsettings/payment_service.json:/app/appsettings.json"
depends_on:
- rabbitmq
- database
entrypoint: ["./wait-for-it.sh", "-s", "rabbitmq:5672", "--", "dotnet", "PaymentService.dll"]
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- "./configs/prometheus.yml:/etc/prometheus/prometheus.yml"
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- "./configs/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/rabbitmq.yaml"
- "./configs/grafana/datasources.yml:/etc/grafana/provisioning/datasources/prometheus.yaml"
- "./configs/grafana/dashboards:/dashboards"