-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
113 lines (105 loc) · 2.77 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
version: "3.5"
services:
metastore-db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
POSTGRES_DB: metastore_db
container_name: postgres
hive-metastore:
platform: linux/x86_64
build: .
image: hive-metastore:latest
ports:
- 9083:9083
volumes:
- ./scripts/entrypoint.sh:/entrypoint.sh
- ./conf/metastore-site.xml:/opt/apache-hive-metastore-3.0.0-bin/conf/metastore-site.xml
container_name: hive-metastore
depends_on:
- metastore-db
- storage
notebook:
image: jupyter/pyspark-notebook:spark-3.1.2
ports:
- 4040:4040
- 8888:8888
volumes:
- ./notebook:/home/jovyan/work
container_name: jupyter
command:
- jupyter
- lab
- --no-browser
- --ip='*'
- --NotebookApp.token=''
- --NotebookApp.password=''
dremio:
platform: linux/x86_64
image: dremio/dremio-oss:19.0
ports:
- 9047:9047
- 31010:31010
- 32010:32010
volumes:
- ./conf/metastore-site.xml:/opt/dremio/plugins/connectors/hive3.d/conf/core-site.xml
- ./conf/metastore-site.xml:/opt/dremio/plugins/connectors/hive3-ee.d/conf/core-site.xml
container_name: dremio
environment:
#creates a default user for the Dremio cluster. user: dremio, password: dremio123
- DREMIO_JAVA_EXTRA_OPTS=-Ddebug.addDefaultUser=true
- SERVER_GC_OPTS=-XX:+UseG1GC
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9047/"]
interval: 5s
retries: 10
createMinioSource:
image: curlimages/curl:7.78.0
depends_on:
dremio:
condition: service_healthy
restart: on-failure
volumes:
- ./scripts/firstRun.sh:/firstRun.sh
entrypoint: >
/bin/sh -c "/firstRun.sh
exit 0;
"
storage:
image: minio/minio
ports:
- 9000:9000
- 9001:9001
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- ./minio:/data
container_name: minio
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
createbuckets:
image: minio/mc
depends_on:
storage:
condition: service_healthy
restart: on-failure
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc mb myminio/dremio;
/usr/bin/mc policy set public myminio/dremio;
exit 0;
"
networks:
default:
name: iceberg
driver: bridge