forked from usdot-jpo-ode/jpo-ode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
260 lines (247 loc) · 8.26 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# DOCKER_SHARED_VOLUME_WINDOWS should be defined for Windows host machine as C: and not defined for Linux hosts
version: '3'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
logging:
options:
max-size: "10m"
max-file: "5"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
ZK: ${DOCKER_HOST_IP}:2181
KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP}
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_CREATE_TOPICS: "topic.OdeBsmPojo:1:1,topic.OdeSpatTxPojo:1:1,topic.OdeSpatPojo:1:1,topic.OdeSpatJson:1:1,topic.FilteredOdeSpatJson:1:1,topic.OdeSpatRxJson:1:1,topic.OdeSpatRxPojo:1:1,topic.OdeBsmJson:1:1,topic.FilteredOdeBsmJson:1:1,topic.OdeTimJson:1:1,topic.OdeTimBroadcastJson:1:1,topic.J2735TimBroadcastJson:1:1,topic.OdeDriverAlertJson:1:1,topic.Asn1DecoderInput:1:1,topic.Asn1DecoderOutput:1:1,topic.Asn1EncoderInput:1:1,topic.Asn1EncoderOutput:1:1,topic.SDWDepositorInput:1:1,topic.OdeTIMCertExpirationTimeJson:1:1,topic.OdeRawEncodedBSMJson:1:1,topic.OdeRawEncodedSPATJson:1:1,topic.OdeRawEncodedTIMJson:1:1,topic.OdeRawEncodedMAPJson:1:1,topic.OdeMapTxPojo:1:1,topic.OdeMapJson:1:1"
KAFKA_DELETE_TOPIC_ENABLED: "true"
KAFKA_CLEANUP_POLICY: "delete" # delete old logs
KAFKA_LOG_RETENTION_HOURS: 2
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 3000
KAFKA_RETENTION_MS: 7200000 # delete old logs after 2 hours
KAFKA_SEGMENT_MS: 7200000 # roll segment logs every 2 hours.
# This configuration controls the period of time after
# which Kafka will force the log to roll even if the segment
# file isn't full to ensure that retention can delete or compact old data.
depends_on:
- zookeeper
volumes:
- ${DOCKER_SHARED_VOLUME_WINDOWS}/var/run/docker.sock:/var/run/docker.sock
logging:
options:
max-size: "10m"
max-file: "5"
ode:
build: .
image: jpoode_ode:latest
ports:
- "8080:8080"
- "9090:9090"
- "46753:46753/udp"
- "46800:46800/udp"
- "47900:47900/udp"
- "5555:5555/udp"
- "6666:6666/udp"
- "44910:44910/udp"
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
ZK: ${DOCKER_HOST_IP}:2181
ODE_SECURITY_SVCS_SIGNATURE_URI: ${ODE_SECURITY_SVCS_SIGNATURE_URI}
ODE_RSU_USERNAME: ${ODE_RSU_USERNAME}
ODE_RSU_PASSWORD: ${ODE_RSU_PASSWORD}
# Commented out, will use SDW depositor module by default
#ODE_DEPOSIT_SDW_MESSAGES_OVER_WEBSOCKET: ${ODE_DEPOSIT_SDW_MESSAGES_OVER_WEBSOCKET}
#ODE_DDS_CAS_USERNAME: ${ODE_DDS_CAS_USERNAME}
#ODE_DDS_CAS_PASSWORD: ${ODE_DDS_CAS_PASSWORD}
depends_on:
- kafka
volumes:
- ${DOCKER_SHARED_VOLUME}:/jpo-ode
- ${DOCKER_SHARED_VOLUME}/uploads:/home/uploads
logging:
options:
max-size: "10m"
max-file: "5"
adm:
build: ./asn1_codec
image: jpoode_acm:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
ACM_CONFIG_FILE: adm.properties
depends_on:
- kafka
volumes:
- ${DOCKER_SHARED_VOLUME}:/asn1_codec_share
logging:
options:
max-size: "10m"
max-file: "5"
aem:
build: ./asn1_codec
image: jpoode_acm:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
ACM_CONFIG_FILE: aem.properties
depends_on:
- kafka
volumes:
- ${DOCKER_SHARED_VOLUME}:/asn1_codec_share
logging:
options:
max-size: "10m"
max-file: "5"
ppm_bsm:
build:
context: ./jpo-cvdp
dockerfile: Dockerfile
image: jpoode_ppm:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
PPM_CONFIG_FILE: ppmBsm.properties
volumes:
- ${DOCKER_SHARED_VOLUME}:/ppm_data
depends_on:
- kafka
logging:
options:
max-size: "10m"
max-file: "5"
ppm_tim:
build:
context: ./jpo-cvdp
dockerfile: Dockerfile
image: jpoode_ppm:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
PPM_CONFIG_FILE: ppmTim.properties
volumes:
- ${DOCKER_SHARED_VOLUME}:/ppm_data
depends_on:
- kafka
logging:
options:
max-size: "10m"
max-file: "5"
cvpep_bsm_depositor:
build: ./jpo-s3-deposit
image: jpoode_s3dep:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
DEPOSIT_BUCKET_NAME: ${CVPEP_BSM_BUCKET_NAME}
DEPOSIT_KEY_NAME: ${CVPEP_BSM_DEPOSIT_KEY}
DEPOSIT_TOPIC: ${CVPEP_BSM_TOPIC}
K_AWS_ACCESS_KEY_ID: ${CVPEP_BSM_K_AWS_ACCESS_KEY_ID}
K_AWS_SECRET_ACCESS_SECRET: ${CVPEP_BSM_K_AWS_SECRET_ACCESS_SECRET}
K_AWS_SESSION_TOKEN: ${CVPEP_BSM_K_AWS_SESSION_TOKEN}
K_AWS_EXPIRATION: ${CVPEP_BSM_K_AWS_EXPIRATION}
API_ENDPOINT: ${CVPEP_BSM_API_ENDPOINT}
HEADER_ACCEPT: ${CVPEP_BSM_HEADER_ACCEPT}
HEADER_X_API_KEY: ${CVPEP_BSM_HEADER_X_API_KEY}
DEPOSIT_GROUP: ${CVPEP_BSM_GROUP}
depends_on:
- kafka
logging:
options:
max-size: "10m"
max-file: "5"
rde_bsm_depositor:
build: ./jpo-s3-deposit
image: jpoode_s3dep:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
DEPOSIT_BUCKET_NAME: ${RDE_BSM_BUCKET_NAME}
DEPOSIT_KEY_NAME: ${RDE_BSM_DEPOSIT_KEY}
DEPOSIT_TOPIC: ${RDE_BSM_TOPIC}
K_AWS_ACCESS_KEY_ID: ${RDE_BSM_K_AWS_ACCESS_KEY_ID}
K_AWS_SECRET_ACCESS_SECRET: ${RDE_BSM_K_AWS_SECRET_ACCESS_SECRET}
K_AWS_SESSION_TOKEN: ${RDE_BSM_K_AWS_SESSION_TOKEN}
K_AWS_EXPIRATION: ${RDE_BSM_K_AWS_EXPIRATION}
API_ENDPOINT: ${RDE_BSM_API_ENDPOINT}
HEADER_ACCEPT: ${RDE_BSM_HEADER_ACCEPT}
HEADER_X_API_KEY: ${RDE_BSM_HEADER_X_API_KEY}
DEPOSIT_GROUP: ${RDE_BSM_GROUP}
depends_on:
- kafka
logging:
options:
max-size: "10m"
max-file: "5"
cvpep_tim_depositor:
build: ./jpo-s3-deposit
image: jpoode_s3dep:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
DEPOSIT_BUCKET_NAME: ${CVPEP_TIM_BUCKET_NAME}
DEPOSIT_KEY_NAME: ${CVPEP_TIM_DEPOSIT_KEY}
DEPOSIT_TOPIC: ${CVPEP_TIM_TOPIC}
K_AWS_ACCESS_KEY_ID: ${CVPEP_BSM_K_AWS_ACCESS_KEY_ID}
K_AWS_SECRET_ACCESS_SECRET: ${CVPEP_BSM_K_AWS_SECRET_ACCESS_SECRET}
K_AWS_SESSION_TOKEN: ${CVPEP_BSM_K_AWS_SESSION_TOKEN}
K_AWS_EXPIRATION: ${CVPEP_BSM_K_AWS_EXPIRATION}
API_ENDPOINT: ${CVPEP_BSM_API_ENDPOINT}
HEADER_ACCEPT: ${CVPEP_BSM_HEADER_ACCEPT}
HEADER_X_API_KEY: ${CVPEP_BSM_HEADER_X_API_KEY}
DEPOSIT_GROUP: ${CVPEP_TIM_GROUP}
depends_on:
- kafka
logging:
options:
max-size: "10m"
max-file: "5"
rde_tim_depositor:
build: ./jpo-s3-deposit
image: jpoode_s3dep:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
DEPOSIT_BUCKET_NAME: ${RDE_TIM_BUCKET_NAME}
DEPOSIT_KEY_NAME: ${RDE_TIM_DEPOSIT_KEY}
DEPOSIT_TOPIC: ${RDE_TIM_TOPIC}
K_AWS_ACCESS_KEY_ID: ${CVPEP_BSM_K_AWS_ACCESS_KEY_ID}
K_AWS_SECRET_ACCESS_SECRET: ${RDE_TIM_K_AWS_SECRET_ACCESS_SECRET}
K_AWS_SESSION_TOKEN: ${RDE_TIM_K_AWS_SESSION_TOKEN}
K_AWS_EXPIRATION: ${RDE_TIM_K_AWS_EXPIRATION}
API_ENDPOINT: ${RDE_TIM_API_ENDPOINT}
HEADER_ACCEPT: ${RDE_TIM_HEADER_ACCEPT}
HEADER_X_API_KEY: ${RDE_TIM_HEADER_X_API_KEY}
DEPOSIT_GROUP: ${RDE_TIM_GROUP}
depends_on:
- kafka
logging:
options:
max-size: "10m"
max-file: "5"
sdw_depositor:
build: ./jpo-sdw-depositor
image: jpoode_sdwdep:latest
environment:
DOCKER_HOST_IP: ${DOCKER_HOST_IP}
#SDW_GROUP_ID: ${SDW_GROUP_ID}
#SDW_KAFKA_PORT: ${SDW_KAFKA_PORT}
#SDW_SUBSCRIPTION_TOPICS: ${SDW_SUBSCRIPTION_TOPICS}
#SDW_DESTINATION_URL: ${SDW_DESTINATION_URL}
SDW_API_KEY: ${SDW_API_KEY}
depends_on:
- kafka
- zookeeper
- ode
logging:
options:
max-size: "10m"
max-file: "5"
sec:
build: ./jpo-security-svcs
image: jpoode_sec:latest
ports:
- "8090:8090"
environment:
SEC_CRYPTO_SERVICE_BASE_URI: ${SEC_CRYPTO_SERVICE_BASE_URI}
logging:
options:
max-size: "10m"
max-file: "5"