-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
69 lines (64 loc) · 1.79 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
version: '3.7'
services:
trino-coordinator:
image: 'trinodb/trino:422'
hostname: trino-coordinator
container_name: trino-coordinator
ports:
- '8080:8080'
volumes:
- ./etc:/etc/trino
networks:
- trino-network
mariadb:
image: 'mariadb:10.3.32'
hostname: mariadb
container_name: mariadb
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_USER: admin
MYSQL_PASSWORD: admin
MYSQL_DATABASE: metastore_db
networks:
- trino-network
hive-metastore:
image: 'bitsondatadev/hive-metastore:latest'
hostname: hive-metastore
container_name: hive-metastore
ports:
- '9083:9083' # Metastore Thrift
volumes:
- ./conf/metastore-site.xml:/opt/apache-hive-metastore-3.0.0-bin/conf/metastore-site.xml:ro
environment:
METASTORE_DB_HOSTNAME: mariadb
depends_on:
- mariadb
networks:
- trino-network
minio:
image: 'minio/minio:RELEASE.2023-07-21T21-12-44Z'
hostname: minio
container_name: minio
ports:
- '9000:9000'
- '9001:9001'
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server --console-address ":9001" /data
networks:
- trino-network
createbuckets:
image: minio/mc
container_name: createbuckets
depends_on:
- minio
entrypoint: >
/bin/sh -c " /usr/bin/mc config host add myminio http://minio:9000 minio minio123; /usr/bin/mc rm -r --force myminio/tpch myminio/warehouse myminio/icebergwarehouse; /usr/bin/mc mb myminio/tpch myminio/warehouse myminio/icebergwarehouse; /usr/bin/mc policy download myminio/tpch myminio/warehouse myminio/icebergwarehouse; exit 0; "
networks:
- trino-network
networks:
trino-network:
driver: bridge