forked from apache/gravitino-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
155 lines (149 loc) · 3.52 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
#
# Copyright 2023 Datastrato Pvt Ltd.
# This software is licensed under the Apache License version 2.
#
version: '3.0'
services:
hive:
image: datastrato/hive:2.7.3-no-yarn
ports:
- "3307:3306"
- "9000:9000"
- "9083:9083"
- "50070: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
deploy:
resources:
limits:
cpus: "3"
memory: 3G
gravitino:
image: datastrato/gravitino:0.5.0
entrypoint: /bin/bash /tmp/gravitino/init.sh
ports:
- "8090:8090"
- "9001:9001"
container_name: playground-gravitino
depends_on:
hive :
condition: service_healthy
volumes:
- ./healthcheck:/tmp/healthcheck
- ./init/gravitino:/tmp/gravitino
deploy:
resources:
limits:
cpus: "0.5"
memory: 500M
healthcheck:
test: ["CMD", "/tmp/healthcheck/gravitino-healthcheck.sh"]
interval: 5s
timeout: 60s
retries: 5
trino:
image: datastrato/trino:426-gravitino-0.5.0
ports:
- "8080: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
entrypoint: /bin/bash /tmp/trino/init.sh
volumes:
- ./init/trino:/tmp/trino
depends_on:
hive :
condition: service_healthy
gravitino :
condition: service_healthy
deploy:
resources:
limits:
cpus: "1"
memory: 2G
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:
- "5432:5432"
volumes:
- ./init/postgres:/docker-entrypoint-initdb.d/
deploy:
resources:
limits:
cpus: "1"
memory: 500M
mysql:
image: mysql:8.0
container_name: playground-mysql
ports:
- "3306:3306"
volumes:
- ./init/mysql:/docker-entrypoint-initdb.d/
environment:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql
MYSQL_DATABASE: db
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
deploy:
resources:
limits:
cpus: "1"
memory: 500M
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:
- "4040:4040"
volumes:
- ./init/spark:/tmp/spark
deploy:
resources:
limits:
cpus: "1"
memory: 1G
jupyter:
image: jupyter/minimal-notebook
container_name: playground-jupyter
ports:
- 8888:8888
volumes:
- ./init/jupyter:/tmp/gravitino
entrypoint: /bin/bash /tmp/gravitino/init.sh
depends_on:
hive :
condition: service_healthy
gravitino :
condition: service_healthy
deploy:
resources:
limits:
cpus: "0.5"
memory: 500M