-
Notifications
You must be signed in to change notification settings - Fork 175
/
Copy pathdocker-compose.yml
69 lines (69 loc) · 1.55 KB
/
docker-compose.yml
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
version: '3'
services:
############################
# Node app + Dapr sidecar
############################
nodeapp:
build: ./node
ports:
- "50002:50002"
depends_on:
- redis
- placement
networks:
- hello-dapr
nodeapp-dapr:
image: "daprio/daprd:edge"
command: ["./daprd",
"-app-id", "nodeapp",
"-app-port", "3000",
"-placement-host-address", "placement:50006",
"-dapr-grpc-port", "50002",
"-components-path", "/components"]
volumes:
- "./components/:/components"
depends_on:
- nodeapp
network_mode: "service:nodeapp"
############################
# Python app + Dapr sidecar
############################
pythonapp:
build: ./python
depends_on:
- redis
- placement
networks:
- hello-dapr
pythonapp-dapr:
image: "daprio/daprd:edge"
command: ["./daprd",
"-app-id", "pythonapp",
"-placement-host-address", "placement:50006",
"-components-path", "/components"]
volumes:
- "./components/:/components"
depends_on:
- pythonapp
network_mode: "service:pythonapp"
############################
# Dapr placement service
############################
placement:
image: "daprio/dapr"
command: ["./placement", "-port", "50006"]
ports:
- "50006:50006"
networks:
- hello-dapr
############################
# Redis state store
############################
redis:
image: "redis:alpine"
ports:
- "6380:6379"
networks:
- hello-dapr
networks:
hello-dapr: