Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (82 loc) · 1.91 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (82 loc) · 1.91 KB
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
services:
backend:
container_name: backend
image: morisacr.azurecr.io/dapr-sample-backend
ports:
- "8081:8081"
environment:
- SERVER_PORT=8081
networks:
- dapr-network
depends_on:
- redis
- placement
backend-dapr:
container_name: backend-dapr
image: daprio/daprd:edge
command: [
"./daprd",
"--app-id", "backend",
"--app-port", "8081",
"--placement-host-address", "placement:50006",
"--dapr-http-port", "3500",
"--dapr-grpc-port", "50001",
"--resources-path", "./components"
]
volumes:
- "./backend/components/dev-dapr:/components"
network_mode: "service:backend"
depends_on:
- backend
frontend:
container_name: frontend
image: morisacr.azurecr.io/dapr-sample-frontend
ports:
- "8080:8080"
networks:
- dapr-network
depends_on:
- placement
- redis
frontend-dapr:
container_name: frontend-dapr
image: daprio/daprd:edge
command: [
"./daprd",
"--log-level", "debug",
"--app-id", "frontend",
"--app-port", "8080",
"--dapr-http-port", "3500",
"--dapr-grpc-port", "50001",
"--placement-host-address", "placement:50006",
"--resources-path", "./components" ]
volumes:
- "./frontend/components/dev-dapr:/components"
network_mode: "service:frontend"
depends_on:
- frontend
placement:
container_name: placement
image: "daprio/dapr"
command: [ "./placement", "--port", "50006", "--log-level" , "debug" ]
ports:
- "50006:50006"
networks:
- dapr-network
redis:
container_name: redis
image: "redis"
ports:
- "6379:6379"
networks:
- dapr-network
zipkin:
container_name: zipkin
image: "openzipkin/zipkin"
ports:
- "9411:9411"
networks:
- dapr-network
networks:
dapr-network:
driver: bridge