-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
162 lines (153 loc) · 4.08 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
159
160
161
162
version: "3.8"
services:
catalogdb:
container_name: catalogdb
restart: always
ports:
- "27017:27017"
volumes:
- catalogdbdata:/data/db
basketdb:
container_name: basketdb
restart: always
ports:
- "6379:6379"
discountdb:
container_name: discountdb
restart: always
ports:
- "5432:5432"
volumes:
- discountdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=Password12*
- POSTGRES_DB=discountdb
identitydb:
container_name: identitydb
restart: always
cap_add: [ 'SYS_PTRACE' ]
ports:
- "1433:1433"
volumes:
- identitydbdata:/var/opt/mssql
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Password12*
orderdb:
container_name: orderdb
restart: always
cap_add: [ 'SYS_PTRACE' ]
ports:
- "1444:1433"
volumes:
- orderdbdata:/var/opt/mssql
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Password12*
rabbitmq:
container_name: rabbitmq
restart: always
ports:
- "5672:5672"
- "15672:15672"
catalog.api:
container_name: catalog.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- RabbitMQUrl=rabbitmq
- IdentityServerUrl=http://identityserver.api
- DatabaseSettings:ConnectionString=mongodb://catalogdb:27017
ports:
- "5011:80"
depends_on:
- catalogdb
identityserver.api:
container_name: identityserver.api
restart: on-failure
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:DefaultConnection=Server=identitydb,1433;Database=IdentityDb; User=sa; Password=Password12*"
ports:
- "5001:80"
depends_on:
- identitydb
basket.api:
container_name: basket.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- IdentityServerUrl=http://identityserver.api
- RedisSettings:Port=6379
- RedisSettings:Host=basketdb
ports:
- "5013:80"
depends_on:
- basketdb
photostock.api:
container_name: photostock.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- IdentityServerUrl=http://identityserver.api
ports:
- "5012:80"
volumes:
- type: bind
source: /Users/musabeytekin/FreeCoursePhotos
target: /app/wwwroot/photos
discount.api:
container_name: discount.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- IdentityServerUrl=http://identityserver.api
- "ConnectionStrings:PostgreSql=User ID=postgres; Password=Password12*; Server=discountdb; Port=5432;Database=discountdb;Integrated Security=true;Pooling=true"
ports:
- "5014:80"
depends_on:
- discountdb
payment.api:
container_name: payment.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- IdentityServerUrl=http://identityserver.api
- RabbitMQUrl=rabbitmq
ports:
- "5016:80"
order.api:
container_name: order.api
restart: on-failure
environment:
- ASPNETCORE_ENVIRONMENT=Development
- IdentityServerUrl=http://identityserver.api
- RabbitMQUrl=rabbitmq
- "ConnectionStrings:DefaultConnection=Server=orderdb,1433;Database=OrderDb; User=sa; Password=Password12*; TrustServerCertificate=True;"
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
- LC_ALL=en_US.UTF-8
- LANG=en_US.UTF-8
ports:
- "5015:80"
depends_on:
- orderdb
gateway.api:
container_name: gateway.api
environment:
- ASPNETCORE_ENVIRONMENT=Production
- IdentityServerUrl=http://identityserver.api
ports:
- "4999:80"
aspnetcoremvc.web: #2sn
container_name: aspnetcoremvc.web
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ServiceApiSettings:IdentityBaseUri=http://identityserver.api
- ServiceApiSettings:GatewayBaseUri=http://gateway.api
ports:
- "5010:80"
depends_on:
- gateway.api
- identityserver.api
- catalog.api
- basket.api
- discount.api
- order.api
- photostock.api
- payment.api