-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
122 lines (120 loc) · 3.13 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
version: "3.8"
services:
catalogdb:
container_name: catalogdb
restart: always
ports:
- "27017:27017"
volumes:
- catalogdb_volume:/data/db
basketdb:
container_name: basketdb
restart: always
ports:
- "6379:6379"
discountdb:
container_name: discountdb
restart: always
ports:
- "5432:5432"
volumes:
- discount_volume:/var/lib/postgresql/data
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=Password12*
- POSTGRES_DB=discountdb
identitydb:
container_name: identitydb
restart: always
ports:
- "1433:1433"
volumes:
- identitydb_volume:/var/opt/mssql
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Password12*
orderdb:
container_name: orderdb
restart: always
ports:
- "1444:1433"
volumes:
- orderdb_volume:/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:
- "5010: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:
- "5014:80"
depends_on:
- basketdb
discount.api:
container_name: discount.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- IdentityServerURL=http://identityserver.api
- "ConnectionStrings:PostgreSql=User ID=admin; Password=Password12*; Server=discountdb; Port=5432;Database=discountdb;Integrated Security=true;Pooling=true"
ports:
- "5011:80"
depends_on:
- discountdb
fakepayment.api:
container_name: fakepayment.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- IdentityServerURL=http://identityserver.api
- RabbitMQUrl=rabbitmq
ports:
- "5013: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*"
ports:
- "5012:80"
depends_on:
- orderdb
gateway.api:
container_name: gateway.api
environment:
- ASPNETCORE_ENVIRONMENT=Production
- IdentityServerURL=http://identityserver.api
ports:
- "5000:80"