-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
144 lines (130 loc) · 3.86 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: '3.4'
services:
# Customers Api & Sidecar
microdelivery.customers.api:
container_name: microdelivery.customers.api
image: ${DOCKER_REGISTRY-}microdeliverycustomersapi
build:
context: .
dockerfile: src/MicroDelivery.Customers.Api/Dockerfile
depends_on:
- sqlserver
- redis
microdelivery.customers.api.dapr:
container_name: microdelivery.customers.api.dapr
image: "daprio/daprd:latest"
network_mode: "service:microdelivery.customers.api"
depends_on:
- microdelivery.customers.api
# Products Api & Sidecar
microdelivery.products.api:
container_name: microdelivery.products.api
image: ${DOCKER_REGISTRY-}microdeliveryproductsapi
build:
context: .
dockerfile: src/MicroDelivery.Products.Api/Dockerfile
depends_on:
- mongo
- redis
microdelivery.products.api.dapr:
container_name: microdelivery.products.api.dapr
image: "daprio/daprd:latest"
network_mode: "service:microdelivery.products.api"
depends_on:
- microdelivery.products.api
# Orders Api & Sidecar
microdelivery.orders.api:
container_name: microdelivery.orders.api
image: ${DOCKER_REGISTRY-}microdeliveryordersapi
build:
context: .
dockerfile: src/MicroDelivery.Orders.Api/Dockerfile
depends_on:
- microdelivery.customers.api
- microdelivery.products.api
- mongo
- rabbit
microdelivery.orders.api.dapr:
container_name: microdelivery.orders.api.dapr
image: "daprio/daprd:latest"
network_mode: "service:microdelivery.orders.api"
depends_on:
- microdelivery.orders.api
# Shipping Api & Sidecar
microdelivery.shipping.api:
container_name: microdelivery.shipping.api
image: ${DOCKER_REGISTRY-}microdeliveryshippingapi
build:
context: .
dockerfile: src/MicroDelivery.Shipping.Api/Dockerfile
depends_on:
- rabbit
microdelivery.shipping.api.dapr:
container_name: microdelivery.shipping.api.dapr
image: "daprio/daprd:latest"
network_mode: "service:microdelivery.shipping.api"
depends_on:
- microdelivery.shipping.api
# Notifications Api & Sidecar
microdelivery.notifications.api:
container_name: microdelivery.notifications.api
image: ${DOCKER_REGISTRY-}microdeliverynotificationsapi
build:
context: .
dockerfile: src/MicroDelivery.Notifications.Api/Dockerfile
depends_on:
- rabbit
microdelivery.notifications.api.dapr:
container_name: microdelivery.notifications.api.dapr
image: "daprio/daprd:latest"
network_mode: "service:microdelivery.notifications.api"
depends_on:
- microdelivery.notifications.api
# Discount Api & Sidecar
microdelivery.discount.api:
container_name: microdelivery.discount.api
image: ${DOCKER_REGISTRY-}microdeliverydiscountapi
build:
context: .
dockerfile: src/MicroDelivery.Discount.Api/Dockerfile
depends_on:
- redis
microdelivery.discount.api.dapr:
container_name: microdelivery.discount.api.dapr
image: "daprio/daprd:latest"
network_mode: "service:microdelivery.discount.api"
depends_on:
- microdelivery.discount.api
# Other services
redis:
container_name: redis
restart: always
image: redis:alpine
mongo:
container_name: mongo
restart: always
image: mongo
sqlserver:
container_name: sqlserver
restart: always
image: mcr.microsoft.com/mssql/server:2022-latest
postgres:
container_name: postgres
restart: always
image: postgres
pgadmin:
container_name: pgadmin
restart: always
image: dpage/pgadmin4
rabbit:
container_name: rabbit
image: "rabbitmq:3-management"
restart: always
smtp4dev:
container_name: smtp4dev
image: rnwood/smtp4dev:v3
restart: always
zipkin:
container_name: zipkin
image: "openzipkin/zipkin"
restart: always