-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (76 loc) · 1.76 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
70
71
72
73
74
75
76
version: '3.4'
services:
############################
# Product + Dapr sidecar
############################
productapp:
build:
context: .
dockerfile: ProductService/Dockerfile
ports:
- "50002:50002"
depends_on:
- redis
- placement
networks:
- gejia
productapp-dapr:
image: "daprio/daprd:edge"
command: ["./daprd",
"-app-id", "productapp",
"-app-port", "80",
"-placement-host-address", "placement:50006",
"-dapr-grpc-port", "50002",
"-components-path", "/components"]
volumes:
- "./components/:/components"
depends_on:
- productapp
network_mode: "service:productapp"
############################
# cart app + Dapr sidecar
############################
cartapp:
build:
context: .
dockerfile: CartService/Dockerfile
depends_on:
- redis
- placement
ports:
- "8100:80"
networks:
- gejia
cartapp-dapr:
image: "daprio/daprd:edge"
command: ["./daprd",
"-app-id", "cartapp",
"-app-port", "80",
"-placement-host-address", "placement:50006",
"-components-path", "/components"]
volumes:
- "./components/:/components"
depends_on:
- cartapp
network_mode: "service:cartapp"
############################
# Dapr placement service
############################
placement:
image: "daprio/dapr"
command: ["./placement", "-port", "50006"]
ports:
- "50006:50006"
networks:
- gejia
############################
# Redis state store
############################
redis:
image: "redis:alpine"
ports:
- "6380:6379"
networks:
- gejia
networks:
gejia: