-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.storage.yaml
116 lines (109 loc) · 3.25 KB
/
docker-compose.storage.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
---
version: '3.6'
# Configure Network
networks:
default:
name: lakehouse-cdc
# Configure Services
services:
####################################################################################################
# Storages
####################################################################################################
postgres:
container_name: postgres
hostname: postgres
image: postgres:11
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./_docker/postgres/init-database.sh:/docker-entrypoint-initdb.d/init-database.sh
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 10s
retries: 5
start_period: 5s
minio:
container_name: minio
hostname: minio
image: 'minio/minio'
ports:
- '9000:9000'
- '9001:9001'
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_DOMAIN: minio
command: server /data --console-address ":9001"
minio-job:
image: 'minio/mc'
container_name: minio-job
hostname: minio-job
entrypoint: |
/bin/bash -c "
sleep 5;
/usr/bin/mc config --quiet host add myminio http://minio:9000 minio minio123 || true;
/usr/bin/mc mb --quiet myminio/datalake || true;
"
environment:
- AWS_ACCESS_KEY_ID=minio
- AWS_SECRET_ACCESS_KEY=minio123
- AWS_REGION=us-east-1
- AWS_DEFAULT_REGION=us-east-1
- S3_ENDPOINT=http://minio:9000
- S3_PATH_STYLE_ACCESS=true
depends_on:
- minio
hive-metastore:
container_name: hive-metastore
hostname: hive-metastore
image: starburstdata/hive:3.1.3-e.13
ports:
- '9083:9083' # Metastore Thrift
environment:
HIVE_METASTORE_DRIVER: org.postgresql.Driver
HIVE_METASTORE_JDBC_URL: jdbc:postgresql://postgres:5432/metastore
HIVE_METASTORE_USER: hive
HIVE_METASTORE_PASSWORD: hive
HIVE_METASTORE_WAREHOUSE_DIR: s3://datalake/
S3_ENDPOINT: http://minio:9000
S3_ACCESS_KEY: minio
S3_SECRET_KEY: minio123
S3_PATH_STYLE_ACCESS: "true"
HIVE_METASTORE_USERS_IN_ADMIN_ROLE: "admin"
REGION: "us-east-1"
GOOGLE_CLOUD_KEY_FILE_PATH: ""
AZURE_ADL_CLIENT_ID: ""
AZURE_ADL_CREDENTIAL: ""
AZURE_ADL_REFRESH_URL: ""
AZURE_ABFS_STORAGE_ACCOUNT: ""
AZURE_ABFS_ACCESS_KEY: ""
AZURE_WASB_STORAGE_ACCOUNT: ""
AZURE_ABFS_OAUTH: ""
AZURE_ABFS_OAUTH_TOKEN_PROVIDER: ""
AZURE_ABFS_OAUTH_CLIENT_ID: ""
AZURE_ABFS_OAUTH_SECRET: ""
AZURE_ABFS_OAUTH_ENDPOINT: ""
AZURE_WASB_ACCESS_KEY: ""
depends_on:
postgres:
condition: service_healthy
####################################################################################################
# Query Engine
####################################################################################################
trino:
container_name: trino
hostname: trino
ports:
- "8889:8080"
image: "trinodb/trino:468"
volumes:
- ./_docker/trino/etc:/usr/lib/trino/etc:ro
- ./_docker/trino/catalog:/etc/trino/catalog
environment:
REGION: "us-east-1"
AWS_REGION: "us-east-1"
depends_on:
- hive-metastore