-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 1.28 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
version: '3.3'
services:
# order-service and its Dapr sidecar
# zipkin
############################
# order-service and its Dapr sidecar
############################
order-service:
image: order-service
build:
context: rest-controller
dockerfile: Dockerfile
container_name: order-service
ports:
- 9200:9200
networks:
- order-service
order-service-dapr:
image: daprio/daprd:edge
container_name: Dapr.Sidecar-order-service
command: ["./daprd",
"-app-id", "order-service",
"-app-port", "9200",
"-config", "/dapr-components/config.yaml",
"-log-level", "debug",
"-components-path", "/dapr-components"]
volumes:
- "./dapr-components:/dapr-components"
depends_on:
- order-service
network_mode: "service:order-service"
zipkin:
image: openzipkin/zipkin-slim
############################
# Redis (commented out as we are using a public mqtt broker for testing, no need for local instance of redis or mosquitto)
############################
# redis:
# image: redis:alpine
# container_name: Dapr.redis
# ports:
# - "6379"
# networks:
# - order-service
networks:
order-service:
external:
name: local_order_service