This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
175 lines (172 loc) · 4.62 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
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
version: '3.8'
services:
mysql:
image: mysql:5.7.38
environment:
VIRTUAL_HOST: mysql.localhost
VIRTUAL_PATH: /
VIRTUAL_PORT: 3306
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: db_dev
MYSQL_HISTFILE: /usr/local/hist/.mysql_history
ports:
- 3306
networks:
- the_network
dns: $DNS_IP
volumes:
- ./mysql_config.cnf:/etc/mysql/conf.d/mysql_config.cnf
- ./mysqlsampledatabase.sql:/docker-entrypoint-initdb.d/00_dump.sql
- ./init.sql:/docker-entrypoint-initdb.d/10_init.sql
- ../tmp/dumps:/tmp/dumps
- mysql:/var/lib/mysql
- history:/usr/local/hist
healthcheck:
test: MYSQL_PWD=password mysqladmin ping -h mysql
timeout: 5s
retries: 10
zookeeper:
image: quay.io/debezium/zookeeper:2.4.1.Final
environment:
VIRTUAL_HOST: zookeeper.localhost
VIRTUAL_PATH: /
VIRTUAL_PORT: 8082
networks:
- the_network
dns: $DNS_IP
volumes:
- zookeeper_data:/zookeeper/data
- zookeeper_txns:/zookeeper/txns
- zookeeper_logs:/zookeeper/logs
- zookeeper_conf:/zookeeper/conf
ports:
- 2181:2181
- 2888:2888
- 3888:3888
- 8082:8080
kafka:
image: quay.io/debezium/kafka:2.4.1.Final
ports:
- 9092:9092
networks:
- the_network
dns: $DNS_IP
volumes:
- kafka_data:/kafka/data
- kafka_logs:/kafka/logs
- kafka_config:/kafka/config
depends_on:
zookeeper:
condition: service_started
environment:
ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_AUTO_CREATE_TOPICS_ENABLE: true
KAFKA_COMPRESSION_TYPE: 'gzip'
connect:
image: quay.io/debezium/connect:2.4.1.Final
ports:
- 8083:8083
- 8778:8778
networks:
- the_network
dns: $DNS_IP
volumes:
- kafka_data:/kafka/data
- kafka_logs:/kafka/logs
- kafka_config:/kafka/config
depends_on:
kafka:
condition: service_started
apicurio:
condition: service_started
environment:
VIRTUAL_HOST: connect.localhost
VIRTUAL_PATH: /
VIRTUAL_PORT: 8083
BOOTSTRAP_SERVERS: kafka:9092
GROUP_ID: 123
CONFIG_STORAGE_TOPIC: app-connect-configs
OFFSET_STORAGE_TOPIC: app-connect-offsets
STATUS_STORAGE_TOPIC: app-connect-statuses
LOG_LEVEL: INFO
ENABLE_JOLOKIA: true
ENABLE_DEBEZIUM_SCRIPTING: true
ENABLE_APICURIO_CONVERTERS: true
KEY_CONVERTER: io.apicurio.registry.utils.converter.AvroConverter
VALUE_CONVERTER: io.apicurio.registry.utils.converter.AvroConverter
CONNECT_KEY_CONVERTER_APICURIO_REGISTRY_URL: http://apicurio:8080/apis/registry/v2
CONNECT_KEY_CONVERTER_APICURIO_REGISTRY_AUTO-REGISTER: true
CONNECT_KEY_CONVERTER_APICURIO_REGISTRY_FIND-LATEST: true
CONNECT_VALUE_CONVERTER_APICURIO_REGISTRY_URL: http://apicurio:8080/apis/registry/v2
CONNECT_VALUE_CONVERTER_APICURIO_REGISTRY_AUTO-REGISTER: true
CONNECT_VALUE_CONVERTER_APICURIO_REGISTRY_FIND-LATEST: true
CONNECT_SCHEMA_NAME_ADJUSTMENT_MODE: avro
akhq:
image: tchiotludo/akhq:0.24.0
ports:
- 8080:8080
- 28081:28081
networks:
- the_network
dns: $DNS_IP
environment:
VIRTUAL_HOST: akhq.localhost
VIRTUAL_PATH: /
VIRTUAL_PORT: 8080
AKHQ_CONFIGURATION: |
akhq:
connections:
docker-kafka-server:
properties:
bootstrap.servers: "kafka:9092"
schema-registry:
url: "http://apicurio:8080/apis/ccompat/v7"
type: "confluent"
connect:
- name: "connect"
url: "http://connect.localhost"
depends_on:
kafka:
condition: service_started
apicurio:
condition: service_started
apicurio:
image: apicurio/apicurio-registry-mem:2.4.1.Final
ports:
- 8084:8080
networks:
- the_network
dns: $DNS_IP
depends_on:
kafka:
condition: service_started
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
QUARKUS_LOG_LEVEL: DEBUG
REGISTRY_API_ERRORS_INCLUDE-STACK-IN-RESPONSE: true
VIRTUAL_HOST: apicurio.localhost
VIRTUAL_PATH: /
VIRTUAL_PORT: 8080
debezium_tooling:
image: quay.io/debezium/tooling
tty: true
networks:
- the_network
dns: $DNS_IP
volumes:
- ./sample.json:/sample.json
command: bash
volumes:
history:
mysql:
zookeeper_data:
zookeeper_txns:
zookeeper_logs:
zookeeper_conf:
kafka_data:
kafka_logs:
kafka_config:
networks:
the_network:
name: the_network
external: true