-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
169 lines (168 loc) · 4.78 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
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
services:
trino-gateway:
image: trinodb/trino-gateway:latest
container_name: trino-gateway
hostname: trino-gateway
networks:
iceberg_net:
aliases:
- trino-gateway
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./trino-gateway/gateway-ha-config.yml:/opt/trino/gateway-ha-config.yml
- ./trino-gateway/log.properties:/opt/trino/log.properties
- ./trino-gateway/certs/private.key:/etc/certs/private.key
- ./trino-gateway/certs/public.key:/etc/certs/public.key
depends_on:
trino-1:
condition: service_healthy
trino-2:
condition: service_healthy
trino-1:
image: trinodb/trino:latest
container_name: trino-1
hostname: trino-1
networks:
iceberg_net:
aliases:
- trino-1
ports:
- "8081:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/v1/info"]
interval: 30s
timeout: 10s
retries: 5
volumes: &trino-volumes
- ./trino/catalogs:/etc/trino/catalogs
- ./trino/etc/config.properties:/etc/trino/config.properties
- ./trino/etc/jvm.config:/etc/trino/jvm.config
depends_on:
minio:
condition: service_healthy
hive-metastore:
condition: service_healthy
trino-2:
image: trinodb/trino:latest
container_name: trino-2
hostname: trino-2
networks:
iceberg_net:
aliases:
- trino-2
ports:
- "8082:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/v1/info"]
interval: 30s
timeout: 10s
retries: 5
volumes: *trino-volumes
depends_on:
minio:
condition: service_healthy
hive-metastore:
condition: service_healthy
postgresdb:
image: postgres:17.2
container_name: postgresdb
hostname: postgresdb
networks:
iceberg_net:
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_MULTIPLE_DATABASES=gateway,metastore,dbt
- PGUSER=postgres
volumes:
- postgresdb-data:/var/lib/postgresql
- ./trino-gateway/create-multiple-postgresql-databases.sh:/docker-entrypoint-initdb.d/create-multiple-postgresql-databases.sh
- ./trino-gateway/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "gateway", "-U", "postgres"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
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://postgresdb:5432/metastore
HIVE_METASTORE_USER: postgres
HIVE_METASTORE_PASSWORD: postgres
HIVE_METASTORE_WAREHOUSE_DIR: s3://datalake/
S3_ENDPOINT: http://minio:9000
S3_ACCESS_KEY: minio
S3_SECRET_KEY: minio123
S3_PATH_STYLE_ACCESS: "true"
REGION: ""
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: ""
HIVE_METASTORE_USERS_IN_ADMIN_ROLE: "admin"
networks:
iceberg_net:
aliases:
- hive-metastore
depends_on:
- postgresdb
minio:
hostname: minio
image: "minio/minio:RELEASE.2022-05-26T05-48-41Z"
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 10s
retries: 5
networks:
iceberg_net:
aliases:
- minio
mc-job:
image: minio/mc:latest
entrypoint: |
/bin/bash -c "
sleep 5;
/usr/bin/mc config --quiet host add myminio http://minio:9000 minio minio123;
/usr/bin/mc mb --quiet myminio/datalake
"
networks:
iceberg_net:
aliases:
- mc-job
depends_on:
- minio
networks:
iceberg_net:
volumes:
postgresdb-data: