-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtye.yaml
120 lines (110 loc) · 2.66 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
108
109
110
111
112
113
114
115
116
117
118
119
120
# tye application configuration file
# read all about it at https://github.com/dotnet/tye
#
# define global settings here
# name: exampleapp # application name
# registry: exampleuser # dockerhub username or container registry hostname
# define multiple services here
name: ServiceMonitor
extensions:
- name: dapr
log-level: debug
# config allows you to pass additional configuration into the dapr sidecar
# config will be interpreted as a named k8s resource when deployed, and will be interpreted as
# a file on disk when running locally at `./components/myconfig.yaml`
# config: myconfig
# components-path configures the components path of the dapr sidecard
components-path: "./components/"
ingress:
- name: ingress
bindings:
- name: httpingress
port: 80
protocol: http
- name: httpsingress
port: 443
protocol: https
rules:
- path: /a
service: servicea
- path: /b
service: serviceb
- path: /
service: dashboard
- path: /dashboard
service: dashboard
services:
- name: servicea
project: src/ServiceA/ServiceA.csproj
env:
- name: AppName
value: ServiceA
env_file:
- ./pubsub.env
- ./statestore.env
- name: serviceb
project: src/ServiceB/ServiceB.csproj
env:
- name: AppName
value: ServiceB
env_file:
- ./pubsub.env
- ./statestore.env
- name: internala
project: src/InternalA/InternalA.csproj
env:
- name: AppName
value: InternalA
env_file:
- ./pubsub.env
- ./statestore.env
- name: auditservice
project: src/AuditService/AuditService.csproj
env:
- name: AppName
value: AuditService
env_file:
- ./pubsub.env
- ./statestore.env
- name: monitorservice
project: src/MonitorService/MonitorService.csproj
env:
- name: AppName
value: MonitorService
env_file:
- ./pubsub.env
- ./statestore.env
- name: requestworker
project: src/RequestWorker/RequestWorker.csproj
env:
- name: AppName
value: RequestWorker
env_file:
- ./pubsub.env
- ./statestore.env
- name: dashboard
project: src/Dashboard/Dashboard.csproj
env:
- name: AppName
value: Dashboard
env_file:
- ./pubsub.env
- ./statestore.env
- name: placement
image: daprio/dapr
args: ./placement
bindings:
- port: 50005
# - name: postgres
# image: postgres
# env:
# - name: POSTGRES_PASSWORD
# value: "pass@word1"
# bindings:
# - port: 5432
# connectionString: Server=${host};Port=${port};User Id=postgres;Password=${env:POSTGRES_PASSWORD};
# - name: redis
# image: redis
# bindings:
# - port: 6379
# connectionString: ${host}:${port}