forked from MaterializeInc/mz-hack-day-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (102 loc) · 2.79 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '3.7'
name: redpanda-pipeline
networks:
redpanda_network:
driver: bridge
volumes:
redpanda: null
services:
data-generator:
build: ./data-generator
container_name: data-generator
networks:
- redpanda_network
depends_on:
redpanda: { condition: service_healthy }
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:v23.1.2
container_name: redpanda
command:
- redpanda start
- --overprovisioned
- --smp 1
- --memory 1G
- --reserve-memory 0M
- --node-id 0
- --check=false
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
- --rpc-addr redpanda:33145
- --advertise-rpc-addr redpanda:33145
- --set redpanda.enable_transactions=true
- --set redpanda.enable_idempotence=true
- --set redpanda.auto_create_topics_enabled=true
ports:
- 18081:18081
- 18082:18082
- 19092:19092
- 19644:9644
- 9092:9092
volumes:
- redpanda:/var/lib/redpanda/data
networks:
- redpanda_network
hostname: kafka
healthcheck: { test: curl -f localhost:9644/v1/status/ready, interval: 1s, start_period: 30s }
console:
image: docker.redpanda.com/redpandadata/console:v2.2.2
restart: on-failure
container_name: redpanda-console
entrypoint: /bin/sh
command: -c "echo \"$$CONSOLE_CONFIG_FILE\" > /tmp/config.yml; /app/console"
environment:
CONFIG_FILEPATH: /tmp/config.yml
CONSOLE_CONFIG_FILE: |
kafka:
brokers: ["redpanda:9092"]
schemaRegistry:
enabled: true
urls: ["http://redpanda:8081"]
redpanda:
adminApi:
enabled: true
urls: ["http://redpanda:9644"]
ports:
- 8080:8080
networks:
- redpanda_network
depends_on:
- redpanda
materialized:
image: materialize/materialized:v0.26.0
container_name: materialized
command: -w1
ports:
- 6875:6875
networks:
- redpanda_network
volumes:
- ./data/icao24_mapping_airbus.json.gz:/tmp/icao24_mapping_airbus.json.gz
mzcli:
image: materialize/cli
container_name: mzcli
networks:
- redpanda_network
dbt:
build: ./dbt
container_name: dbt
init: true
ports:
- 8000:8080
networks:
- redpanda_network
volumes:
- ./dbt/profiles.yml:/root/.dbt/profiles.yml
- ./dbt/:/usr/app/dbt
stdin_open: true
tty: true
depends_on:
- materialized