-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
52 lines (47 loc) · 1.33 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:
# customer-service and its Dapr sidecar
# zipkin
############################
# customer-service and its Dapr sidecar
############################
customer-service:
image: customer-service
build:
context: rest-controller
dockerfile: Dockerfile
container_name: customer-service
ports:
- 9100:9100
networks:
- customer-service
customer-service-dapr:
image: daprio/daprd:edge
container_name: Dapr.Sidecar-customer-service
command: ["./daprd",
"-app-id", "customer-service",
"-app-port", "9100",
"-config", "/dapr-components/config.yaml",
"-log-level", "debug",
"-components-path", "/dapr-components"]
volumes:
- "./dapr-components:/dapr-components"
depends_on:
- customer-service
network_mode: "service:customer-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:
# - customer-service
networks:
customer-service:
external:
name: local_customer_service