-
Notifications
You must be signed in to change notification settings - Fork 937
/
Copy pathcompose.yml
108 lines (101 loc) · 3.38 KB
/
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
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
services:
minio:
image: bitnami/minio:2023-debian-11
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio_minio
MINIO_DEFAULT_BUCKETS: spark-bucket
container_name: minio
hostname: minio
ports:
- 9000
- 9001:9001
postgres:
image: postgres:${POSTGRES_VERSION}
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: metastore
container_name: postgres
hostname: postgres
ports:
- 5432:5432
volumes:
- ./script/hive-schema-2.3.0.postgres.sql:/docker-entrypoint-initdb.d/hive-schema-2.3.0.postgres.sql
- ./script/hive-txn-schema-2.3.0.postgres.sql:/docker-entrypoint-initdb.d/hive-txn-schema-2.3.0.postgres.sql
zookeeper:
image: zookeeper:${ZOOKEEPER_VERSION}
ports:
- 2181
container_name: zookeeper
hostname: zookeeper
metastore:
image: nekyuubi/kyuubi-playground-metastore:${KYUUBI_VERSION}
container_name: metastore
hostname: metastore
ports:
- 9083
volumes:
- ./conf/core-site.xml:/etc/hadoop/conf/core-site.xml
- ./conf/hive-site.xml:/etc/hive/conf/hive-site.xml
depends_on:
- postgres
kyuubi:
image: nekyuubi/kyuubi-playground-kyuubi:${KYUUBI_VERSION}
container_name: kyuubi
hostname: kyuubi
ports:
- 4040-4050:4040-4050
- 10009:10009
- 10099:10099
volumes:
- ./conf/core-site.xml:/etc/hadoop/conf/core-site.xml
- ./conf/hive-site.xml:/etc/hive/conf/hive-site.xml
- ./conf/spark-defaults.conf:/etc/spark/conf/spark-defaults.conf
- ./conf/kyuubi-defaults.conf:/etc/kyuubi/conf/kyuubi-defaults.conf
- ./conf/kyuubi-log4j2.xml:/etc/kyuubi/conf/log4j2.xml
- ./script/load-dataset-tpcds-tiny.sql:/opt/load_data/load-dataset-tpcds-tiny.sql
- ./script/load-dataset-tpch-tiny.sql:/opt/load_data/load-dataset-tpch-tiny.sql
depends_on:
- metastore
- minio
- zookeeper
prometheus:
# leave `v` here for match prometheus docker image tag
image: prom/prometheus:v${PROMETHEUS_VERSION}
container_name: prometheus
hostname: prometheus
ports:
- 9090:9090
- 8123:8123
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana-oss:${GRAFANA_VERSION}
container_name: grafana
hostname: grafana
ports:
- 3000:3000
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
volumes:
- ./grafana/datasource/prometheus.yaml:/etc/grafana/provisioning/datasources/prometheus.yaml
depends_on:
- prometheus