-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
57 lines (57 loc) · 1.56 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
version: '3.9'
services:
materialized:
image: materialize/materialized:v0.26.4
container_name: materialized
init: true
command: -w1 --disable-telemetry --experimental
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
datagen:
build: datagen
container_name: datagen
environment:
- REDPANDA_BROKERS=redpanda:9092
depends_on:
- redpanda
fastapi:
build: fastapi
container_name: fastapi
environment:
- DATABASE_URL=postgresql://materialize:materialize@materialized:6875/materialize
# To use Materialize Cloud, uncomment the following line and replace the
# - PGSSLROOTCERT=./ca.crt
# - PGSSLMODE=verify-full
# - PGSSLKEY=./materialize.key
# - PGSSLCERT=./materialize.crt
# - DATABASE_URL=postgresql://materialize@your_materialize_cloud_instance.materialize.cloud:6875/materialize
ports:
- 80:80
depends_on:
- materialized