-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
85 lines (85 loc) · 2.13 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
version: '3.9'
services:
materialized:
image: materialize/materialized:v0.26.4
container_name: materialized
init: true
command: -w1 --disable-telemetry
ports:
- 6875:6875
depends_on:
- redpanda
mzcli:
image: materialize/cli
container_name: mzcli
redpanda:
image: docker.vectorized.io/vectorized/redpanda:v21.10.1
container_name: redpanda
command:
- redpanda start
- --overprovisioned
- --smp 1
- --memory 1G
- --reserve-memory 0M
- --node-id 0
- --check=false
- --kafka-addr 0.0.0.0:9092
- --advertise-kafka-addr redpanda:9092
- --pandaproxy-addr 0.0.0.0:8082
- --advertise-pandaproxy-addr redpanda:8082
- --set redpanda.enable_transactions=true
- --set redpanda.enable_idempotence=true
ports:
- 9092:9092
- 8081:8081
- 8082:8082
mysql:
image: debezium/example-mysql:1.8
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=debezium
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
- MYSQL_DATABASE=db
volumes:
- ${PWD}/mysql_image:/docker-entrypoint-initdb.d
depends_on:
- redpanda
debezium:
image: debezium/connect:1.8
container_name: debezium
environment:
BOOTSTRAP_SERVERS: redpanda:9092
GROUP_ID: 1
CONFIG_STORAGE_TOPIC: connect_configs
OFFSET_STORAGE_TOPIC: connect_offsets
KEY_CONVERTER: io.confluent.connect.avro.AvroConverter
VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter
CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL: http://redpanda:8081
CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: http://redpanda:8081
depends_on:
- redpanda
- mysql
- metabase
ports:
- 8083:8083
metabase:
image: metabase/metabase
container_name: metabase
depends_on:
- materialized
ports:
- 3030:3000
reviewsgen:
build: reviews_generation_mock
container_name: reviewsgen
environment:
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
- MYSQL_DATABASE=shop
depends_on:
- mysql
- redpanda
- debezium
- metabase