-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
166 lines (157 loc) · 4.52 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: "2.2"
services:
jobmanager:
image: flink:latest
hostname: jobmanager
container_name: jobmanager
ports:
- "8081:8081"
command:
- jobmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
volumes:
- ./flink-jar/untitled-1.0-SNAPSHOT-jar-with-dependencies.jar:/flink-example/untitled-1.0-SNAPSHOT-jar-with-dependencies.jar
- ./flink-jar/flink-sql-connector-kafka-3.0.1-1.18.jar:/flink-example/flink-sql-connector-kafka-3.0.1-1.18.jar
networks:
- flink-network
restart: on-failure
taskmanager:
image: flink:latest
hostname: taskmanager
container_name: taskmanager
depends_on:
- jobmanager
command: taskmanager
scale: 1
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 16
networks:
- flink-network
restart: on-failure
kafka:
image: 'bitnami/kafka:latest'
hostname: kafka
container_name: kafka
ports:
- "9092:9092"
- "9093:9093"
- "9094:9094"
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
networks:
- flink-network
restart: on-failure
kafka-ui:
image: provectuslabs/kafka-ui:latest
hostname: kafka-ui
container_name: kafka-ui
depends_on:
- kafka
ports:
- 8080:8080
environment:
KAFKA_CLUSTERS_0_NAME: kafka
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092
DYNAMIC_CONFIG_ENABLED: 'true'
networks:
- flink-network
restart: on-failure
postgresql:
image: debezium/example-postgres:latest
hostname: postgresql
container_name: postgresql
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=demir
- POSTGRES_PASSWORD=demir*/895/
volumes:
- ./sql/create_table.sql:/docker-entrypoint-initdb.d/create_table.sql
- ./sql/insert_data.sql:/docker-entrypoint-initdb.d/insert_data.sql
ports:
- '5432:5432'
networks:
- flink-network
restart: on-failure
pgadmin:
image: dpage/pgadmin4
hostname: pgadmin
container_name: pgadmin
depends_on:
- postgresql
ports:
- "8888:80"
environment:
PGADMIN_DEFAULT_EMAIL: demir@ahmetfurkandemir.com
PGADMIN_DEFAULT_PASSWORD: demir*/895/
networks:
- flink-network
restart: on-failure
debezium:
image: debezium/connect:latest
hostname: debezium
container_name: debezium
depends_on:
- postgresql
- pgadmin
- kafka
ports:
- "8083:8083"
environment:
BOOTSTRAP_SERVERS: "kafka:9092"
GROUP_ID: "1"
CONFIG_STORAGE_TOPIC: "config"
OFFSET_STORAGE_TOPIC: "offset"
STATUS_STORAGE_TOPIC: "status"
CONFIG_STORAGE_REPLICATION_FACTOR: 1
OFFSET_STORAGE_REPLICATION_FACTOR: 1
STATUS_STORAGE_REPLICATION_FACTOR: 1
KEY_CONVERTER: "org.apache.kafka.connect.storage.StringConverter"
VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
INTERNAL_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
INTERNAL_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_INTERNAL_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_INTERNAL_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
networks:
- flink-network
restart: on-failure
debezium-ui:
image: debezium/debezium-ui:latest
container_name: debezium-ui
hostname: debezium-ui
depends_on:
- debezium
ports:
- '8086:8080'
environment:
KAFKA_CONNECT_URIS: http://debezium:8083
networks:
- flink-network
restart: on-failure
debezium-connector:
container_name: debezium-connector
build: ./docker/debezium-connector
volumes:
- .:/code
depends_on:
- kafka
- debezium
networks:
- flink-network
restart: on-failure
networks:
flink-network:
external: true