-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
120 lines (119 loc) · 2.87 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
version: '3'
services:
zookeeper:
image: debezium/zookeeper:1.5
ports:
- 2181:2181
- 2888:2888
- 3888:3888
kafka:
image: debezium/kafka:1.5
ports:
- 9092:9092
links:
- zookeeper
environment:
- ZOOKEEPER_CONNECT=zookeeper:2181
postgres:
image: debezium/postgres:11
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ${PWD}/postgres:/docker-entrypoint-initdb.d
connect:
image: debezium/connect:1.5
ports:
- 8083:8083
links:
- kafka
- postgres
environment:
- BOOTSTRAP_SERVERS=kafka:9092
- GROUP_ID=test-consumer-group
- CONFIG_STORAGE_TOPIC=my_connect_configs
- OFFSET_STORAGE_TOPIC=my_connect_offsets
- STATUS_STORAGE_TOPIC=my_connect_statuses
flink-base-img:
build:
context: ./client-image
dockerfile: Dockerfile.base
image: rtdw/flink-base
command: echo image build success!
sql-client:
build: ./client-image
image: rtdw/flink-sql-client
depends_on:
- kafka
- jobmanager
- elasticsearch
environment:
FLINK_JOBMANAGER_HOST: jobmanager
ZOOKEEPER_CONNECT: zookeeper
KAFKA_BOOTSTRAP: kafka
ES_HOST: elasticsearch
# HOODIE_ENV_fs_DOT_oss_DOT_endpoint: "minio:9000"
# HOODIE_ENV_fs_DOT_oss_DOT_accessKeyId: abc
# HOODIE_ENV_fs_DOT_oss_DOT_accessKeySecret: xyzxyzxyz
# HOODIE_ENV_fs_DOT_oss_DOT_impl: org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem
volumes:
- ${PWD}/data:/data
- ${PWD}/ckp:/ckp
jobmanager:
image: rtdw/flink-base
ports:
- "8081:8081"
command: jobmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 50
parallelism.default: 1
volumes:
- ${PWD}/data:/data
- ${PWD}/ckp:/ckp
taskmanager:
image: rtdw/flink-base
depends_on:
- jobmanager
command: taskmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 50
parallelism.default: 1
volumes:
- ${PWD}/data:/data
- ${PWD}/ckp:/ckp
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ports:
- "9200:9200"
- "9300:9300"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
kibana:
image: docker.elastic.co/kibana/kibana:7.11.2
ports:
- "5601:5601"
# minio:
# image: minio/minio
# env_file:
# - .env
# ports:
# - "9000:9000"
# command: server /data