-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
73 lines (69 loc) · 2.54 KB
/
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
services:
fhir:
image: docker.io/hapiproject/hapi:v7.4.0@sha256:f34b41f5002665f384cf344da2d8e653025bd095aa37aa6f5a9d6dc0dac75684
environment:
HAPI_FHIR_VALIDATION_REQUESTS_ENABLED: "false"
HAPI_FHIR_SUBSCRIPTION_RESTHOOK_ENABLED: "false"
HAPI_FHIR_FHIR_VERSION: "R4"
HAPI_FHIR_CORS_ALLOWCREDENTIALS: "false"
HAPI_FHIR_CORS_ALLOWED_ORIGIN: "*"
ports:
- 127.0.0.1:8082:8080
kafka:
image: docker.io/bitnami/kafka:3.9.0@sha256:978583d0859444d3bc6b6592b38b5af5a834d473db51441071a20e67e0afb945
restart: unless-stopped
cap_drop:
- ALL
privileged: false
ipc: none
security_opt:
- "no-new-privileges:true"
environment:
KAFKA_CFG_NODE_ID: "0"
KAFKA_RAFT_CLUSTER_ID: "kafka-fhir-to-server"
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: "0@kafka:9093"
KAFKA_CFG_PROCESS_ROLES: "controller,broker"
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_CFG_MESSAGE_MAX_BYTES: "31457280"
KAFKA_CFG_LISTENERS: "PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094"
KAFKA_CFG_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094"
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: "CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT"
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: PLAINTEXT
ports:
- 127.0.0.1:9094:9094
akhq:
image: docker.io/tchiotludo/akhq:0.25.1@sha256:cfaef8f419c4e4b78c583597d6428b63166e90eeb194af890264d68051a22180
environment:
AKHQ_CONFIGURATION: |
akhq:
connections:
kafka:
properties:
bootstrap.servers: "kafka:9092"
ports:
- 127.0.0.1:8084:8080
depends_on:
- kafka
mock-data-loader:
image: docker.io/confluentinc/cp-kafkacat:7.1.14@sha256:85ef7339cc27b33660d48c6bc3fd7e63317fd359f7f6b1bdc10f091db486b061
entrypoint: ["/bin/bash", "-c"]
restart: on-failure
command:
[
"while true; do kafkacat -b kafka:9092 -t fhir-msg -P -l /data/mock-data.ndjson; sleep 5; done",
]
volumes:
- ${PWD}/hack/mock-data.ndjson:/data/mock-data.ndjson:ro
depends_on:
- kafka
minio:
image: docker.io/bitnami/minio:2024.11.7-debian-12-r1@sha256:9f2d9c45006a2ada1bc485e1393291ce7d54ae1a46260dd491381a4eb8b2fd47
environment:
MINIO_ROOT_USER: "admin"
# kics-scan ignore-line
MINIO_ROOT_PASSWORD: "miniopass" # gitleaks:allow
MINIO_DEFAULT_BUCKETS: "fhir"
ports:
- "127.0.0.1:9000:9000"
- "127.0.0.1:9001:9001"