-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yaml
196 lines (187 loc) · 5.37 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
195
196
#
# 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:
hive:
image: apache/gravitino-playground:hive-0.1.14
ports:
- "3307:3306"
- "19000:9000"
- "19083:9083"
- "60070:50070"
container_name: playground-hive
environment:
- HADOOP_USER_NAME=root
entrypoint: /bin/bash /tmp/hive/init.sh
volumes:
- ./init/hive:/tmp/hive
healthcheck:
test: ["CMD", "/tmp/check-status.sh"]
interval: 10s
timeout: 60s
retries: 5
start_period: 20s
ranger:
image: apache/gravitino-playground:ranger-0.1.0
ports:
- "6080:6080"
container_name: playground-ranger
entrypoint: /bin/bash /tmp/ranger/init.sh
volumes:
- ./healthcheck:/tmp/healthcheck
- ./init/ranger:/tmp/ranger
healthcheck:
test: ["CMD", "/tmp/healthcheck/ranger-healthcheck.sh"]
interval: 5s
timeout: 60s
retries: 5
start_period: 120s
deploy:
resources:
limits:
cpus: "0.5"
memory: 500M
gravitino:
image: apache/gravitino:0.7.0-incubating
entrypoint: /bin/bash /tmp/gravitino/init.sh
ports:
- "8090:8090"
- "9001:9001"
container_name: playground-gravitino
depends_on:
ranger :
condition: service_healthy
hive :
condition: service_healthy
mysql:
condition: service_healthy
volumes:
- ./healthcheck:/tmp/healthcheck
- ./init/gravitino:/tmp/gravitino
healthcheck:
test: ["CMD", "/tmp/healthcheck/gravitino-healthcheck.sh"]
interval: 5s
timeout: 60s
retries: 5
start_period: 20s
trino:
image: apache/gravitino-playground:trino-435-gravitino-0.7.0-incubating
ports:
- "18080:8080"
container_name: playground-trino
environment:
- HADOOP_USER_NAME=root
- GRAVITINO_HOST_IP=gravitino
- GRAVITINO_HOST_PORT=8090
- GRAVITINO_METALAKE_NAME=metalake_demo
- HIVE_HOST_IP=hive
- MYSQL_HOST_IP=mysql
- POSTGRES_HOST_IP=postgresql
entrypoint: /bin/bash /tmp/trino/init.sh
volumes:
- ./init/trino:/tmp/trino
- ./init/common:/tmp/common
- ./healthcheck:/tmp/healthcheck
depends_on:
hive:
condition: service_healthy
gravitino:
condition: service_healthy
healthcheck:
test: ["CMD", "/tmp/healthcheck/trino-healthcheck.sh"]
interval: 10s
timeout: 60s
retries: 5
start_period: 20s
postgresql:
image: postgres:13
container_name: playground-postgresql
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ALLOW_IP_RANGE: 0.0.0.0/0
ports:
- "15432:5432"
volumes:
- ./init/postgres:/docker-entrypoint-initdb.d/
mysql:
image: mysql:8.0
container_name: playground-mysql
environment:
- MYSQL_ROOT_PASSWORD=mysql
- MYSQL_USER=mysql
- MYSQL_PASSWORD=mysql
- MYSQL_DATABASE=db
ports:
- "13306:3306"
volumes:
- ./init/mysql:/docker-entrypoint-initdb.d/
- ./healthcheck:/tmp/healthcheck
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
healthcheck:
test: ["CMD", "/bin/bash", "/tmp/healthcheck/mysql-healthcheck.sh"]
interval: 5s
timeout: 60s
retries: 5
start_period: 20s
spark:
image: spark:3.4.1-scala2.12-java11-ubuntu
container_name: playground-spark
entrypoint: /bin/bash /tmp/spark/init.sh
environment:
- HADOOP_USER_NAME=root
ports:
- "14040:4040"
volumes:
- ./init/spark:/tmp/spark
- ./init/common:/tmp/common
jupyter:
image: jupyter/pyspark-notebook:spark-3.4.1
container_name: playground-jupyter
ports:
- "18888:8888"
volumes:
- ./init/jupyter:/tmp/gravitino
entrypoint: /bin/bash /tmp/gravitino/init.sh
depends_on:
hive:
condition: service_healthy
gravitino:
condition: service_healthy
prometheus:
image: prom/prometheus:v2.55.0
container_name: playground-prometheus
ports:
- "19090:9090"
volumes:
- ./init/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:11.3.0-ubuntu
container_name: playground-grafana
ports:
- "13000:3000"
volumes:
- ./init/grafana/grafana.ini:/etc/grafana/grafana.ini
- ./init/grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- ./init/grafana/dashboards:/etc/grafana/provisioning/dashboards