-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
194 lines (182 loc) · 5.31 KB
/
docker-compose.yaml
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
version: '3'
services:
mage:
image: mage
container_name: mage
ports:
- "6789:6789"
volumes:
- .:/home/mage_code
environment:
#To avoid adding too many variables here consider using
#-.env instead where you define what variables you need
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ENV: ${ENV}
LOG_LEVEL: ${LOG_LEVEL}
KAFKA_SCHEMA_REGISTRY: ${KAFKA_SCHEMA_REGISTRY}
SCHEMA_REGISTRY_USERNAME: ${SCHEMA_REGISTRY_USERNAME}
SCHEMA_REGISTRY_PASSWORD: ${SCHEMA_REGISTRY_PASSWORD}
KAFKA_BROKERS: ${KAFKA_BROKERS}
KAFKA_CLIENT_ID: ${KAFKA_CLIENT_ID}
KAFKA_CLIENT_ID_BATCH: ${KAFKA_CLIENT_ID_BATCH}
KAFKA_GROUP_ID: ${KAFKA_GROUP_ID}
KAFKA_GROUP_ID_BATCH: ${KAFKA_GROUP_ID_BATCH}
KAFKA_TOPIC: ${KAFKA_TOPIC}
KAFKA_BATCH_TOPIC: ${KAFKA_BATCH_TOPIC}
KAFKA_STREAM_TOPIC: ${KAFKA_STREAM_TOPIC}
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MAGE_SLACK_WEBHOOK_URL: ${MAGE_SLACK_WEBHOOK_URL}
networks:
- nessie_network
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"
networks:
- nessie_network
schema-registry:
image: confluentinc/cp-schema-registry:latest
hostname: schema-registry
depends_on:
- kafka
ports:
- "8081:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
SCHEMA_REGISTRY_LISTENERS: http://schema-registry:8081
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9093,PLAINTEXT_INTERNAL://localhost:9092
SCHEMA_REGISTRY_DEBUG: 'true'
networks:
- nessie_network
kafka:
image: confluentinc/cp-kafka:latest
ports:
- "9092:9092"
expose:
- "9093"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9093,PLAINTEXT_INTERNAL://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
networks:
- nessie_network
dremio:
platform: linux/x86_64
image: dremio/dremio-oss:latest
ports:
- 9047:9047
- 31010:31010
- 32010:32010
container_name: dremio
networks:
- nessie_network
nessie:
image: ghcr.io/projectnessie/nessie:0.94.4
container_name: nessie
ports:
- "19120:19120"
environment:
- nessie.catalog.default-warehouse=warehouse
- nessie.catalog.warehouses.warehouse.location=s3://iceberg-demo-nessie/
- nessie.catalog.service.s3.default-options.region=us-east-1
- nessie.catalog.service.s3.default-options.path-style-access=true
- nessie.catalog.service.s3.default-options.access-key.name=${MINIO_ACCESS_KEY}
- nessie.catalog.service.s3.default-options.access-key.secret=${MINIO_SECRET_KEY}
- nessie.catalog.service.s3.default-options.endpoint=http://minio:9000/
networks:
- nessie_network
minio:
container_name: minio
image: quay.io/minio/minio
ports:
- '9000:9000'
- '9001:9001'
volumes:
- './minio_data:/data'
environment:
- MINIO_ROOT_USER=${MINIO_ACCESS_KEY}
- MINIO_ROOT_PASSWORD=${MINIO_SECRET_KEY}
- MINIO_DOMAIN=storage
- MINIO_REGION_NAME=us-east-1
- MINIO_REGION=us-east-1
command: server --console-address ":9001" /data
networks:
- nessie_network
minio-client:
image: minio/mc:latest
container_name: minio-client
depends_on:
- minio
entrypoint: >
/bin/sh -c "
until (mc alias set myminio http://minio:9000 zefko sparkTutorial); do echo 'waiting for minio...'; sleep 3; done;
mc mb myminio/iceberg-demo-nessie;
"
networks:
- nessie_network
starrocks-fe-0:
image: starrocks/fe-ubuntu:latest
hostname: starrocks-fe-0
container_name: starrocks-fe-0
command:
- /bin/bash
- -c
- |
/opt/starrocks/fe_entrypoint.sh starrocks-fe-0
environment:
- HOST_TYPE=FQDN
- TZ=Asia/Shanghai
- AWS_ACCESS_KEY_ID=${MINIO_ACCESS_KEY}
- AWS_SECRET_ACCESS_KEY=${MINIO_SECRET_KEY}
ports:
- "8030:8030"
- "9020:9020"
- "9030:9030"
volumes:
- singleton_fe0_data:/opt/starrocks/fe/meta
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9030"]
interval: 5s
timeout: 5s
retries: 30
networks:
- nessie_network
starrocks-be-0:
image: starrocks/be-ubuntu:latest
hostname: starrocks-be-0
container_name: starrocks-be-0
command:
- /bin/bash
- -c
- |
/opt/starrocks/be_entrypoint.sh starrocks-fe-0
environment:
- HOST_TYPE=FQDN
- TZ=Asia/Shanghai
ports:
- "8040:8040"
depends_on:
- starrocks-fe-0
volumes:
- singleton_be0_data:/opt/starrocks/be/storage
networks:
- nessie_network
networks:
nessie_network:
driver: bridge
volumes:
minio_data:
singleton_fe0_data:
singleton_be0_data: