-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
147 lines (136 loc) · 3.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
x-common-variables: &common-variables
ASPNETCORE_ENVIRONMENT: Development
OTEL_EXPORTER_OTLP_ENDPOINT: 'http://otel-collector:4317'
SEQ_ENDPOINT: 'http://seq:5341'
APPLICATIONINSIGHTS_CONNECTION_STRING: ${APPLICATIONINSIGHTS_CONNECTION_STRING}
services:
## ----------------- Apps
frontend:
image: ${DOCKER_REGISTRY-}dinner-frontend
build:
context: src\frontend
ports:
- 5011:80
environment:
<<: *common-variables
depends_on:
otel-collector:
condition: service_started
frontend-dapr:
image: daprio/daprd:1.11.2
command: ["./daprd",
"-app-id", "frontend",
"-app-port", "80",
"-resources-path", "./components",
"-config", "./components/config.yaml"]
volumes:
- "./dapr/docker/:/components"
depends_on:
frontend:
condition: service_started
network_mode: "service:frontend"
dinner-api:
image: ${DOCKER_REGISTRY-}dinner-api
build:
context: src\dinner-api
ports:
- 5010:80
environment:
<<: *common-variables
depends_on:
otel-collector:
condition: service_started
dinner-api-dapr:
image: daprio/daprd:1.11.2
command: ["./daprd",
"-app-id", "dinner-api",
"-app-port", "80",
"-resources-path", "./components",
"-config", "./components/config.yaml"]
volumes:
- "./dapr/docker/:/components"
depends_on:
dinner-api:
condition: service_started
network_mode: "service:dinner-api"
processor:
image: ${DOCKER_REGISTRY-}processor
build:
context: src\ai-processor
environment:
<<: *common-variables
AZURE_OPENAI_API_MODEL: ${AZURE_OPENAI_API_MODEL}
AZURE_OPENAI_API_ENDPOINT: ${AZURE_OPENAI_API_ENDPOINT}
AZURE_OPENAI_API_KEY: ${AZURE_OPENAI_API_KEY}
depends_on:
otel-collector:
condition: service_started
processor-dapr:
image: daprio/daprd:1.11.2
command: ["./daprd",
"-app-id", "ai-processor",
"-app-port", "80",
"-resources-path", "./components",
"-config", "./components/config.yaml"]
volumes:
- "./dapr/docker/:/components"
depends_on:
processor:
condition: service_started
network_mode: "service:processor"
email-sender:
image: ${DOCKER_REGISTRY-}email-sender
build:
context: src\email-sender
environment:
<<: *common-variables
AZURE_COMMUNICATION_CONNECTION_STRING: ${AZURE_COMMUNICATION_CONNECTION_STRING}
AZURE_COMMUNICATION_FROM_ADDRESS: ${AZURE_COMMUNICATION_FROM_ADDRESS}
depends_on:
otel-collector:
condition: service_started
email-sender-dapr:
image: daprio/daprd:1.11.2
command: ["./daprd",
"-app-id", "email-sender",
"-app-port", "80",
"-resources-path", "./components",
"-config", "./components/config.yaml"]
volumes:
- "./dapr/docker/:/components"
depends_on:
email-sender:
condition: service_started
network_mode: "service:email-sender"
## ----------------- Infra
redis:
image: redis:latest
ports:
- 6380:6379
mongo:
image: mongo:6.0.6
ports:
- 27017:27017
zipkin:
image: openzipkin/zipkin:latest
ports:
- 9412:9411
environment:
JAVA_OPTS: '-Xms1g -Xmx1g -XX:+ExitOnOutOfMemoryError'
otel-collector:
image: otel/opentelemetry-collector-contrib:0.78.0
command: ["--config=conf/config.yaml"]
environment:
- APPLICATION_INSIGHTS_INSTRUMENTATION_KEY=${APPLICATION_INSIGHTS_INSTRUMENTATION_KEY}
- APPLICATION_INSIGHTS_INGESTION_ENDPOINT=${APPLICATION_INSIGHTS_INGESTION_ENDPOINT}/v2/track
volumes:
- ./docker/otel-collector-config.yaml:/conf/config.yaml
depends_on:
zipkin:
condition: service_started
seq:
image: datalust/seq:latest
ports:
- 5341:80
environment:
- ACCEPT_EULA=Y