forked from vietnam-devs/coolstore-microservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tye.yaml
107 lines (97 loc) · 2.9 KB
/
tye.yaml
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
name: coolstore-on-dapr
containerEngine: docker
extensions:
- name: dapr
log-level: debug
config: appconfig
components-path: "./components/"
# - name: zipkin
# - name: elastic
# logPath: ./.logs
services:
- name: webapigatewayapp
project: src/dotnet/api-gateway/Gateway.csproj
env:
- Redis=localhost
- OpenIdConnect__Authority=https://localhost:5001
- OpenIdConnect__ExternalAuthority=https://localhost:5001
- ReverseProxy__Clusters__inventoryApiCluster__Destinations__destination1__Address=http://host.docker.internal:5002
- ReverseProxy__Clusters__productCatalogApiCluster__Destinations__destination1__Address=http://host.docker.internal:5003
- ReverseProxy__Clusters__shoppingCartApiCluster__Destinations__destination1__Address=http://localhost:5004
- ReverseProxy__Clusters__saleApiCluster__Destinations__destination1__Address=http://host.docker.internal:5005
bindings:
- port: 5000
protocol: https
- name: identityapp
project: src/dotnet/identity-server/IdentityServer.csproj
bindings:
- port: 5001
protocol: https
- name: inventoryapp
dockerFile: src/rust/docker/Dockerfile-inventory
dockerFileContext: src/rust/
# image: inventoryapp
env:
- INVENTORY_HOST=0.0.0.0
- INVENTORY_PORT=5002
- PG_USER=postgres
- PG_PASSWORD=P@ssw0rd
- PG_INVENTORY_DATABASE=inv_db
- PG_HOST=host.docker.internal
- PG_PORT=5432
- RUST_LOG="sqlx::query=error,tower_http=debug,info"
- RUST_BACKTRACE=1
bindings:
- port: 5002
containerPort: 5002
protocol: http
- name: productcatalogapp
dockerFile: src/rust/docker/Dockerfile-product-catalog
dockerFileContext: src/rust/
# image: productcatalogapp
env:
- 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=host.docker.internal
- PG_PORT=5432
- RUST_LOG="sqlx::query=error,tower_http=debug,info"
- RUST_BACKTRACE=1
- INVENTORY_CLIENT_URI=http://host.docker.internal:5002
bindings:
- port: 5003
containerPort: 5003
protocol: http
- name: shoppingcartapp
project: src/dotnet/shopping-cart/ShoppingCart.csproj
bindings:
- port: 5004
- name: saleapp
dockerFile: src/go/docker/Dockerfile-sale
dockerFileContext: src/go/
bindings:
- port: 5005
containerPort: 5005
protocol: http
- name: web
dockerFile: src/web/Dockerfile
dockerFileContext: src/web
env:
- API_URL=https://host.docker.internal:5000
bindings:
- port: 3000
containerPort: 3000
protocol: http
- name: postgres
image: postgres
env:
- name: POSTGRES_PASSWORD
value: "P@ssw0rd"
bindings:
- port: 5432
connectionString: Server=${host};Port=${port};User Id=postgres;Password=${env:POSTGRES_PASSWORD};
volumes:
- target: /docker-entrypoint-initdb.d/tye_postgres_init.sql
source: tye_postgres_init.sql