-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.wasmedge-container.yml
64 lines (61 loc) · 1.66 KB
/
docker-compose.wasmedge-container.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
version: "3.9"
services:
mysql:
image: mysql:5.7
container_name: mysql
command:
--server-id=1
--log-bin=mysql-bin
--max-binlog-size=4096
--binlog-format=MIXED
--sync-binlog=1
--log-slave-updates=ON
--gtid-mode=ON
--enforce-gtid-consistency=ON
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
--max-connections=1000
--read-only=OFF
--binlog-rows-query-log-events=ON
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_ROOT_HOST=%
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
container_name: "kafka"
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_LISTENERS: LISTENER_INTERNAL://kafka:29090,LISTENER_EXTERNAL://localhost:9090
# KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_INTERNAL:PLAINTEXT,LISTENER_EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_INTERNAL
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
wasmedge_binlog_kafka:
container_name: "wasmedge_binlog_kafka"
image: hrushi20/mysql-binlog-kafka
platform: wasi/wasm
build:
context: .
environment:
SQL_USERNAME: root
SQL_PASSWORD: password
SQL_PORT: 3306
SQL_HOSTNAME: "mysql"
SQL_DATABASE: "mysql"
KAFKA_URL: "kafka:29090"
SLEEP_TIME: 10000
RUST_BACKTRACE: full
runtime: io.containerd.wasmedge.v1
restart: unless-stopped
depends_on:
- mysql
- kafka
- zookeeper