forked from floodplainio/postgres-debezium-dvdrental
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
127 lines (127 loc) · 3.16 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: '2'
services:
film:
build: ./film
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: mysecretpassword
customer:
build: ./customer
ports:
- "5433:5432"
environment:
POSTGRES_PASSWORD: mysecretpassword
rental:
build: ./rental
ports:
- "5434:5432"
environment:
POSTGRES_PASSWORD: mysecretpassword
analytics-postgres:
build: ./analytics
ports:
- "5435:5432"
environment:
POSTGRES_PASSWORD: mysecretpassword
rental-rust:
image: floodplain/rust-rental:latest
depends_on:
- "rental"
environment:
DATABASE_URL: postgres://postgres:mysecretpassword@rental:5432/dvdrental
SLEEP_MILLIS: 100
redpanda:
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.enable_idempotence=true
- --set redpanda.enable_transactions=true
# NOTE: Please use the latest version here!
image: docker.redpanda.com/vectorized/redpanda:latest
container_name: redpanda-1
ports:
- 8080:8081
- 9092:9092
- 29092:29092
connect:
image: debezium/connect:1.9.5.Final
depends_on:
- redpanda
ports:
- "8083:8083"
environment:
- BOOTSTRAP_SERVERS=redpanda:29092
- CONFIG_STORAGE_TOPIC=topic-config
- OFFSET_STORAGE_TOPIC=offset-storage
- LOG_LEVEL=INFO
- 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
jobmanager:
build: ./flink
ports:
- "8081:8081"
command: jobmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager:
build: ./flink
depends_on:
- jobmanager
command: taskmanager
scale: 1
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 4
sql-client:
build: ./sql-client
command: bin/sql-client.sh
depends_on:
- jobmanager
- taskmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
console:
image: vectorized/console:latest
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:29092"]
schemaRegistry:
enabled: true
urls: ["http://redpanda:8081"]
redpanda:
adminApi:
enabled: true
urls: ["http://redpanda:9644"]
connect:
enabled: true
clusters:
- name: local-connect-cluster
url: http://connect:8083
ports:
- 8082:8080
depends_on:
- redpanda