forked from BehzadDara/OnlineShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
159 lines (142 loc) · 3.78 KB
/
docker-compose.override.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
version: '3.4'
services:
catalogdb:
container_name: catalogdb
restart: always
volumes:
- ./mongo_data:/data/db
ports:
- 27017:27017
basketdb:
container_name: basketdb
restart: always
ports:
- 6379:6379
discountdb:
container_name: discountdb
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin1234
- POSTGRES_DB=discountdb
restart: always
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
orderdb:
container_name: orderdb
environment:
- SA_PASSWORD=Admin1234
- ACCEPT_EULA=Y
restart: always
ports:
- 1433:1433
mongoclient:
container_name: mongoclient
restart: always
ports:
- 5040:3000
pgadmin:
container_name: pgadmin
environment:
- PGADMIN_DEFAULT_PASSWORD=admin1234
restart: always
ports:
- 5050:80
volumes:
- pgadmin_data:/root/.pgadmin
portainer:
container_name: portainer
restart: always
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
rabbitmq:
container_name: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
catalog.api:
container_name: catalog.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8000
- DatabaseSettings:ConnectionString=mongodb://catalogdb:27017
depends_on:
- catalogdb
ports:
- 8000:8000
basket.api:
container_name: basket.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8001
- CacheSettings:ConnectionString=basketdb:6379
- GrpcSettings:DiscountUrl=http://discount.grpc:8003
- EventBusSettings:HostAddress=amqp://guest:guest@rabbitmq:5672
depends_on:
- basketdb
- rabbitmq
ports:
- 8001:8001
discount.api:
container_name: discount.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8002
- DatabaseSettings:ConnectionString=Server=discountdb;Port=5432;Database=discountdb;User Id=admin;Password=admin1234
depends_on:
- discountdb
ports:
- 8002:8002
discount.grpc:
container_name: discount.grpc
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8003
- DatabaseSettings:ConnectionString=Server=discountdb;Port=5432;Database=discountdb;User Id=admin;Password=admin1234
ports:
- 8003:8003
ordering.api:
container_name: ordering.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8004
- ConnectionStrings:OrderingConnectionString=Server=orderdb;Database=orderdb;User Id=sa;Password=Admin1234;TrustServerCertificate=True;
# Connect orderdb in SSMS using IpConfig -> Ethernet adapter vEthernet (WSL) -> Ip V4
- EventBusSettings:HostAddress=amqp://guest:guest@rabbitmq:5672
depends_on:
- orderdb
- rabbitmq
ports:
- 8004:8004
ocelotapigateway:
container_name: ocelotapigateway
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8010
depends_on:
- catalog.api
- basket.api
- discount.api
- ordering.api
ports:
- 8010:8010
onlineshop.aggregator:
container_name: onlineshop.aggregator
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8005
- ApiSettings:CatalogUrl=http://catalog.api:8000
- ApiSettings:BasketUrl=http://basket.api:8001
- ApiSettings:OrderingUrl=http://ordering.api:8004
depends_on:
- catalog.api
- basket.api
- ordering.api
ports:
- 8005:8005