-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.override.yml
89 lines (80 loc) · 2.44 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
version: '3.4'
services:
catalogdb:
container_name: catalogdb
restart: always
volumes:
- ${WEBAPP_STORAGE_HOME}/site:/data/db
ports:
- "27017:27017"
basketdb:
container_name: basketdb
restart: always
ports:
- "6379:6379"
orderdb:
container_name: orderdb
ports:
- "1433:1433"
environment:
SA_PASSWORD: "Password123"
ACCEPT_EULA: "Y"
rabbitmq:
container_name: rabbitmq
restart: always
ports:
- "5672:5672"
- "15672:15672"
catalog.api:
container_name: catalogapi
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "CatalogDatabaseSettings:ConnectionString=mongodb://catalogdb:27017"
depends_on:
- catalogdb
volumes:
- ${HOME}/.microsoft/usersecrets/:/root/.microsoft/usersecrets
- ${HOME}/.aspnet/https:/root/.aspnet/https/
ports:
- "8000:80"
basket.api:
container_name: basketapi
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:Redis=basketdb:6379"
- "EventBus:HostName=rabbitmq"
depends_on:
- catalogdb
- rabbitmq
volumes:
- ${HOME}/.microsoft/usersecrets/:/root/.microsoft/usersecrets
- ${HOME}/.aspnet/https:/root/.aspnet/https/
ports:
- "8001:80"
ordering.api:
container_name: orderingapi
restart: on-failure
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:OrderConnection=Server=orderdb;Database=OrderDb;User Id=sa;Password=Password123;"
- "EventBus:HostName=rabbitmq"
depends_on:
- orderdb
- rabbitmq
volumes:
- ${HOME}/.microsoft/usersecrets/:/root/.microsoft/usersecrets
- ${HOME}/.aspnet/https:/root/.aspnet/https/
ports:
- "8002:80"
ocelotapigateway:
environment:
- ASPNETCORE_ENVIRONMENT=Development
depends_on:
- catalog.api
- basket.api
- ordering.api
volumes:
- ${HOME}/.microsoft/usersecrets/:/root/.microsoft/usersecrets
- ${HOME}/.aspnet/https:/root/.aspnet/https/
ports:
- "7000:80"