-
Notifications
You must be signed in to change notification settings - Fork 0
/
dapr.yaml
51 lines (51 loc) · 1.67 KB
/
dapr.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
#https://docs.dapr.io/developing-applications/local-development/multi-app-dapr-run/multi-app-template/
version: 1
common:
resourcesPath: ./components
# env:
# DEBUG: true
apps:
- appID: gateway
appDirPath: ./
appPort: 3011
daprHTTPPort: 8001
command: ["go","run", "gateway/main.go", "devMode"]
env:
GATEWAY_PORT: 3001
GATEWAY_SUBSCRIBER_PORT: 3011
GATEWAY_TOPIC_BALANCE: topic.balance
GATEWAY_TOPIC_COMPLETED_TRANSACTION: topic.completed_transaction
- appID: balanceservice
appDirPath: ./
appPort: 3012
daprHTTPPort: 8002
command: ["go","run", "balanceservice/main.go"]
env:
BALANCE_PORT: 3002
BALANCE_DB_DRIVER: sqlite3
BALANCE_DB_DATASOURCE: file:localdev/sqlitedata/main.db
BALANCE_SUBSCRIBER_PORT: 3012
BALANCE_TOPIC_BALANCE: topic.balance
BALANCE_TOPIC_CREDIT_TRANSACTION: topic.credit_transaction
BALANCE_TOPIC_DEBIT_TRANSACTION: topic.debit_transaction
BALANCE_TOPIC_COMPLETED_TRANSACTION: topic.completed_transaction
- appID: debit-tnx
appDirPath: .
appPort: 3013
daprHTTPPort: 8003
command: ["go","run", "transactionservice/main.go", "debit"]
env:
DEBITTNX_PORT: 3003
DEBITTNX_SUBSCRIBER_PORT: 3013
DEBITTNX_TOPIC_BALANCE: topic.balance
DEBITTNX_TOPIC_DEBIT_TRANSACTION: topic.debit_transaction
- appID: credit-tnx
appDirPath: .
appPort: 3014
daprHTTPPort: 8004
command: ["go","run", "transactionservice/main.go", "credit"]
env:
CREDITTNX_PORT: 3004
CREDITTNX_SUBSCRIBER_PORT: 3014
CREDITTNX_TOPIC_BALANCE: topic.balance
CREDITTNX_TOPIC_CREDIT_TRANSACTION: topic.credit_transaction