-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
114 lines (104 loc) · 2.83 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
version: '3.4'
# https://docs.dapr.io/operations/hosting/self-hosted/self-hosted-with-docker/
# sample: https://github.com/dapr/samples/blob/master/hello-docker-compose/docker-compose.yml
# another sample: https://github.com/cecilphillip/ZeroToHeroDaprCon/blob/main/demo2/docker-compose-dapr.yml
# a bigger sample: https://github.com/dotnet-architecture/eShopOnDapr/blob/main/docker-compose.override.yml
# currently not working due to issue https://github.com/dotnet/aspnetcore/issues/35285
# we don't need placement because we're not using actors
services:
catalog:
image: ${DOCKER_REGISTRY-}catalog
build:
context: .
dockerfile: catalog/Dockerfile
environment:
- DAPR_HTTP_PORT=3500
networks:
- globoticket-dapr
catalog-dapr:
image: "daprio/daprd:1.13.0"
command: [
"./daprd",
"-app-id", "catalog",
"-app-port", "80",
"-components-path", "/components",
"-config", "/config/config.yaml"
]
volumes:
- "./dapr/dc-components/:/components"
- "./dapr/dc-config/:/config"
depends_on:
- catalog
network_mode: "service:catalog"
frontend:
image: ${DOCKER_REGISTRY-}frontend
build:
context: .
dockerfile: frontend/Dockerfile
environment:
- DAPR_HTTP_PORT=3500
networks:
- globoticket-dapr
frontend-dapr:
image: "daprio/daprd:1.13.0"
command: [
"./daprd",
"-app-id", "frontend",
"-app-port", "80",
"-components-path", "/components",
"-config", "/config/config.yaml"
]
volumes:
- "./dapr/dc-components/:/components"
- "./dapr/dc-config/:/config"
depends_on:
- frontend
network_mode: "service:frontend"
ordering:
image: ${DOCKER_REGISTRY-}ordering
build:
context: .
dockerfile: ordering/Dockerfile
environment:
- DAPR_HTTP_PORT=3500
networks:
- globoticket-dapr
ordering-dapr:
image: "daprio/daprd:1.13.0"
command: [
"./daprd",
"-app-id", "ordering",
"-app-port", "80",
"-components-path", "/components",
"-config", "/config/config.yaml"
]
volumes:
- "./dapr/dc-components/:/components"
- "./dapr/dc-config/:/config"
depends_on:
- ordering
network_mode: "service:ordering"
redis:
container_name: "redis_service"
image: "redis:6.2-alpine"
ports:
- "6379"
networks:
- globoticket-dapr
maildev:
container_name: "maildev_service"
image: "maildev/maildev:1.1.0" # https://hub.docker.com/r/maildev/maildev
ports:
- "25"
- "1080:80"
networks:
- globoticket-dapr
zipkin:
container_name: "zipkin_service"
image: "openzipkin/zipkin:2.23.4" # https://registry.hub.docker.com/r/openzipkin/zipkin
ports:
- 9412:9411
networks:
- globoticket-dapr
networks:
globoticket-dapr: