forked from danthelion/materialize-wikidata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (69 loc) · 1.72 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
services:
redpanda:
image: docker.vectorized.io/vectorized/redpanda:v22.1.4
command:
- redpanda
- start
- --smp
- '1'
- --reserve-memory
- 0M
- --overprovisioned
- --node-id
- '0'
- --kafka-addr
- PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092
- --set
- redpanda.cluster_id=redpanda
ports:
- "9092:9092"
- "9081:8081"
- "9082:8082"
expose:
- 29092 # redpanda
- 8081 # schema-registry
- 8082 # restproxy
materialized:
image: materialize/materialized:v0.26.4
container_name: materialized
command: -w1
ports:
- "6875:6875"
python_producer:
image: kafkapythonwiki:latest
build:
context: ./data-generator/
dockerfile: Dockerfile
init: true
environment:
BROKER: "redpanda:29092"
volumes:
# Source code
- ./data-generator/wikidata_events.py:/wikidata_events.py
command: [ "python3", "wikidata_events.py" ]
create_topic:
image: docker.vectorized.io/vectorized/redpanda:v22.1.4
command:
- topic create recentchange --brokers redpanda:29092
provectus-ui-local:
image: provectuslabs/kafka-ui:46bcbb3436caf7357ff11eebbd1b49fe4f2cd167
ports:
- "9029:8080"
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: "redpanda:29092"
backend:
image: backendpython:latest
build:
context: ./api/
dockerfile: Dockerfile
init: true
environment:
MATER: "materialized:6875"
ports:
- "9999:9999"
volumes:
# Source code
- ./api/app/:/opt/program/app/