-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (74 loc) · 1.98 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
version: '3.8'
services:
mysql:
image: arm64v8/mysql:8.0.29
container_name: 'ql-mysql'
hostname: 'ql-mysql'
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USERNAME}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- ./.mysql:/var/lib/mysql:delegated
- ./docker/provision/mysql/init:/docker-entrypoint-initdb.d
networks:
- quarkus-learning
ports:
- ${MYSQL_PORT}:3306
command: --sql_mode="" --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-time-zone="UTC"
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
restart: unless-stopped
zookeeper:
image: quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
ports:
- "12181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 9092
ZOOKEEPER_TICK_TIME: 2000
LOG_DIR: /tmp/logs
networks:
- quarkus-learning
healthcheck:
test: [ "CMD", "nc", "-vz", "localhost", "2181" ]
interval: 2s
timeout: 10s
retries: 50
kafka:
image: quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
command: [
"bin/kafka-server-start.sh",
"config/server.properties",
"--override",
"listeners=${KAFKA_LISTENERS}",
"--override",
"advertised.listeners=${KAFKA_ADVERTISED_LISTENERS}",
"--override",
"zookeeper.connect=${KAFKA_ZOOKEEPER_CONNECT}"
]
hostname: kafka
depends_on:
zookeeper:
condition: service_healthy
links:
- zookeeper
ports:
- "${KAFKA_EXTERNAL_PORT}:9092"
environment:
LOG_DIR: "/tmp/logs"
KAFKA_M_R_B: "1147483648"
KAFKA_NUM_PARTITIONS: "10"
networks:
- quarkus-learning
networks:
quarkus-learning:
name: ql
driver: bridge