forked from aspnetrun/run-aspnetcore-microservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
106 lines (97 loc) · 2.99 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
version: '3.4'
services:
catalogdb:
container_name: catalogdb
restart: always
volumes:
- ${WEBAPP_STORAGE_HOME}/site:/data/db
#- ./data:/data/db
ports:
- "27017:27017"
basketdb:
container_name: basketdb
restart: always
ports:
- "6379:6379"
orderdb:
container_name: orderdb
ports:
- "1433:1433"
environment:
SA_PASSWORD: "SwN12345678"
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:
- basketdb
- 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=SwN12345678"
- "EventBus:HostName=rabbitmq"
depends_on:
- orderdb
- rabbitmq
volumes:
- ${HOME}/.microsoft/usersecrets/:/root/.microsoft/usersecrets
- ${HOME}/.aspnet/https:/root/.aspnet/https/
ports:
- "8002:80"
apigateway:
container_name: apigateway
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"
aspnetrunbasics:
container_name: aspnetrunbasics
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ApiSettings:BaseAddress=apigateway"
depends_on:
- catalog.api
- basket.api
- ordering.api
- apigateway
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
ports:
- "8003:80"