-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
133 lines (122 loc) · 2.92 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: '3.4'
networks:
dapr-net:
services:
myfrontend:
image: ${DOCKER_REGISTRY-}myfrontend
build:
context: .
dockerfile: MyFrontEnd/Dockerfile
depends_on:
- dapr-placement
- redis
- zipkin
- mybackend
networks:
- dapr-net
environment:
- ZIPKIN_BASE_URL=http://zipkin:9411/api/v2/spans
myfrontend-dapr:
image: "daprio/daprd:latest"
command: [ "./daprd",
"-app-id", "MyFrontEnd",
"-app-port", "80",
"-dapr-http-port", "3500",
"-log-level", "debug",
"-enable-api-logging", "true",
"-placement-host-address", "dapr-placement:50000",
"-dapr-tracing" ]
depends_on:
- myfrontend
network_mode: "service:myfrontend"
environment:
- ZIPKIN_ADDRESS=zipkin:9411
mybackend:
image: ${DOCKER_REGISTRY-}mybackend
build:
context: .
dockerfile: MyBackEnd/Dockerfile
depends_on:
- dapr-placement
- redis
- zipkin
networks:
- dapr-net
environment:
- ZIPKIN_BASE_URL=http://zipkin:9411/api/v2/spans
mybackend-dapr:
image: "daprio/daprd:latest"
command: [ "./daprd",
"-app-id", "MyBackEnd",
"-app-port", "80",
"-dapr-http-port", "3500",
"-log-level", "debug",
"-enable-api-logging", "true",
"-placement-host-address", "dapr-placement:50000",
"-dapr-tracing",
"-dapr-tracing-exporter", "zipkin" ]
depends_on:
- mybackend
network_mode: "service:mybackend"
environment:
- ZIPKIN_ADDRESS=zipkin:9411
envoygateway:
build: Envoy/
networks:
- dapr-net
ports:
- "9902:9902"
- "10000:10000"
volumes:
- ./Envoy/envoy.yaml:/etc/envoy/envoy.yaml
envoygateway-dapr:
image: "daprio/daprd:latest"
command: [ "./daprd",
"-app-id", "EnvoyGateway",
"-app-port", "10000",
"-dapr-http-port", "3500",
"-log-level", "info",
"-enable-api-logging", "true",
"-placement-host-address", "dapr-placement:50000",
"-dapr-tracing" ]
depends_on:
- envoygateway
network_mode: "service:envoygateway"
environment:
- ZIPKIN_ADDRESS=zipkin:9411
nginx:
container_name: nginx
image: ${DOCKER_REGISTRY-}nginx
build:
context: .
dockerfile: Nginx/Dockerfile
ports:
- "8090:80"
networks:
- dapr-net
depends_on:
- myfrontend
volumes:
- "./Nginx/nginx.conf:/etc/nginx/nginx.conf"
zipkin:
image: openzipkin/zipkin-slim:latest
container_name: zipkin
ports:
- "9411:9411"
networks:
- dapr-net
redis:
image: redis:alpine
ports:
- "5379:6379"
networks:
- dapr-net
dapr-placement:
image: "daprio/dapr:latest"
command: [ "./placement",
"--port", "50000",
"--log-level", "debug" ]
ports:
- "50000:50000"
networks:
- dapr-net