-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathdocker-compose-dremio.yml
More file actions
92 lines (86 loc) · 2.11 KB
/
docker-compose-dremio.yml
File metadata and controls
92 lines (86 loc) · 2.11 KB
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
services:
# Nessie Catalog Server Using In-Memory Store
nessie:
image: projectnessie/nessie:latest
container_name: catalog
networks:
- dremio-lakehouse
ports:
- 19120:19120
# Minio Storage Server
minio:
image: minio/minio:latest
container_name: storage
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
- MINIO_DOMAIN=storage
- MINIO_REGION_NAME=us-east-1
- MINIO_REGION=us-east-1
networks:
- dremio-lakehouse
ports:
- 9001:9001
- 9000:9000
command: ["server", "/data", "--console-address", ":9001"]
volumes:
- minio_data:/data
minio-setup:
image: minio/mc
container_name: minio-setup
depends_on:
- minio
entrypoint: >
/bin/sh -c "
until (echo > /dev/tcp/minio/9000) >/dev/null 2>&1; do
echo 'Waiting for MinIO...';
sleep 2;
done;
mc alias set myminio http://minio:9000 admin password;
mc mb myminio/datalake;
mc ls myminio;
"
networks:
- dremio-lakehouse
# Dremio
dremio:
image: dremio/dremio-oss:latest
platform: linux/amd64
ports:
- 9047:9047
- 31010:31010
- 32010:32010
- 45678:45678
container_name: dremio
environment:
- DREMIO_JAVA_SERVER_EXTRA_OPTS=-Dpaths.dist=file:///opt/dremio/data/dist -Ddebug.addDefaultUser=true
- SERVICES_COORDINATOR_ENABLED=true
- SERVICES_EXECUTOR_ENABLED=true
networks:
- dremio-lakehouse
volumes:
- dremio_data:/opt/dremio/data:rw
# Workaround for permission issues in podman
user: "0"
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9047 || exit 1"]
interval: 5s
timeout: 5s
retries: 30
start_period: 15s
dremio-setup:
image: alpine:latest
container_name: dremio-setup
depends_on:
dremio:
condition: service_healthy
volumes:
- ./docker/dremio/dremio-setup.sh:/dremio-setup.sh
command: sh /dremio-setup.sh
networks:
- dremio-lakehouse
networks:
dremio-lakehouse:
volumes:
dremio_data:
minio_data: