forked from vietnam-devs/coolstore-microservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
114 lines (102 loc) · 3 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
version: "3"
services:
webapp:
environment:
- API_URL=https://web.cs.local:5000
ports:
- 3000:3000
webapigatewayapp:
networks:
coolstore-network:
aliases:
- web.cs.local
environment:
- Redis=host.docker.internal
- OpenIdConnect__Authority=https://id.cs.local:5001
- ReverseProxy__Clusters__inventoryApiCluster__Destinations__destination1__Address=http://inventoryapp:5002
- ReverseProxy__Clusters__productCatalogApiCluster__Destinations__destination1__Address=http://productcatalogapp:5003
- ReverseProxy__Clusters__shoppingCartApiCluster__Destinations__destination1__Address=http://shoppingcartapp:5004
- ReverseProxy__Clusters__saleApiCluster__Destinations__destination1__Address=http://saleapp:5005
- ReverseProxy__Clusters__appCluster__Destinations__destination1__Address=http://webapp:3000
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:5000
- ASPNETCORE_Kestrel__Certificates__Default__Password=localhost
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/localhost.pfx
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5000:5000"
identityapp:
networks:
coolstore-network:
aliases:
- id.cs.local
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:5001
- ASPNETCORE_Kestrel__Certificates__Default__Password=localhost
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/localhost.pfx
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5001:5001"
inventoryapp:
environment:
- INVENTORY_HOST=0.0.0.0
- INVENTORY_PORT=5002
- PG_USER=postgres
- PG_PASSWORD=P@ssw0rd
- PG_INVENTORY_DATABASE=inv_db
- PG_HOST=postgresql
- PG_PORT=5432
- RUST_LOG="sqlx::query=error,tower_http=debug,info"
- RUST_BACKTRACE=1
ports:
- "5002:5002"
productcatalogapp:
restart: always
environment:
- PRODUCT_CATALOG_HOST=0.0.0.0
- PRODUCT_CATALOG_PORT=5003
- PG_USER=postgres
- PG_PASSWORD=P@ssw0rd
- PG_PRODUCT_CATALOG_DATABASE=cat_db
- PG_HOST=postgresql
- PG_PORT=5432
- RUST_LOG="sqlx::query=error,tower_http=debug,info"
- RUST_BACKTRACE=1
- INVENTORY_CLIENT_URI=http://inventoryapp:5002
ports:
- "5003:5003"
shoppingcartapp:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5004
ports:
- "5004:5004"
saleapp:
ports:
- "5005:5005"
postgresql:
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=P@ssw0rd
ports:
- "5432:5432"
# elk:
# ports:
# - "5601:5601"
# - "9200:9200"
# expose:
# - 5601
# - 9200
# zipkin:
# ports:
# - "9411:9411"
# redis:
# environment:
# - ALLOW_EMPTY_PASSWORD=yes
# - DISABLE_COMMANDS=FLUSHDB,FLUSHALL,CONFIG
# ports:
# - "6379:6379"