-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
87 lines (87 loc) · 2.29 KB
/
docker-compose.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
version: '3.4'
services:
############################
# Workflow App + Dapr sidecar
############################
workflow-app:
environment:
- DAPR_HTTP_PORT=3504
- DAPR_GRPC_PORT=4004
build:
context: .
dockerfile: WorkflowDemo/WorkflowApp/dockerfile
ports:
- "3504:3504" # only important so we can reach the sidecar from the host for testing purposes
depends_on:
- redis
- placement
networks:
- network
workflow-dapr:
image: "daprio/daprd:1.13.0"
command: ["./daprd",
"-app-id", "workflow",
"-app-port", "5049",
"-dapr-http-port", "3504",
"-placement-host-address", "placement:50006",
"-dapr-grpc-port", "4004",
"-resources-path", "/WorkflowDemo/ResourcesK8s",
"-log-level","debug"]
volumes:
- "./WorkflowDemo/ResourcesK8s/:/WorkflowDemo/ResourcesK8s"
depends_on:
- workflow-app
network_mode: "service:workflow-app"
############################
# Shipping App + Dapr sidecar
############################
shippingapp:
environment:
- DAPR_HTTP_PORT=3506
- DAPR_GRPC_PORT=4006
build:
context: .
dockerfile: WorkflowDemo/ShippingApp/dockerfile
ports:
- "3506:3506" # only important so we can reach the sidecar from the host for testing purposes
depends_on:
- redis
- placement
networks:
- network
shipping-dapr:
image: "daprio/daprd:1.13.0"
command: ["./daprd",
"-app-id", "workflow",
"-app-port", "5051",
"-dapr-http-port", "3506",
"-placement-host-address", "placement:50006",
"-dapr-grpc-port", "4006",
"-resources-path", "/WorkflowDemo/ResourcesK8s",
"-log-level","debug"]
volumes:
- "./WorkflowDemo/ResourcesK8s/:/WorkflowDemo/ResourcesK8s"
depends_on:
- shhipping-app
network_mode: "service:workflow-app"
############################
# Dapr placement service
############################
placement:
image: "daprio/dapr:1.13.0"
command: ["./placement", "-port", "50006"]
ports:
- "50006:50006"
networks:
- network
############################
# Redis state store
############################
redis:
image: "redis:alpine"
ports:
- "6380:6379"
networks:
- network
networks:
network: