-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (94 loc) · 2.37 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: "2.2"
services:
jobmanager:
container_name: jobmanager
build:
context: ./container/flink/
ports:
- "8081:8081"
- "9249:9249"
command: jobmanager
volumes:
- ./code:/opt/flink/code
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager:
container_name: taskmanager
build:
context: ./container/flink/
depends_on:
- jobmanager
command: taskmanager
ports:
- "9250:9249"
volumes:
- ./code:/opt/flink/code
scale: 1
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 2
prometheus:
image: prom/prometheus:v2.37.1
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:8.4.0
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=flink
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
zookeeper:
image: docker.io/bitnami/zookeeper:3.8
container_name: zookeeper
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: docker.io/bitnami/kafka:3.4
container_name: kafka
ports:
- "9093:9093"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS=INSIDE://:9092,OUTSIDE://:9093
- KAFKA_CFG_LISTENERS=INSIDE://:9092,OUTSIDE://:9093
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=INSIDE
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
postgres:
image: debezium/postgres:15
container_name: postgres
hostname: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
datagen:
build:
context: ./container/datagen/
command: python /opt/datagen/gen_fake_data.py
volumes:
- ./code:/opt/datagen/code
- ./datagen:/opt/datagen
container_name: datagen
restart: on-failure
depends_on:
- postgres
- kafka