-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.metastore.yml
64 lines (61 loc) · 1.52 KB
/
docker-compose.metastore.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
version: '3.6'
services:
mysql:
image: mysql:8
container_name: mysql
restart: always
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=metastore_db
- MYSQL_ROOT_PASSWORD=root
- LANG=C.UTF-8
volumes:
- ./_script/docker-mysql/conf/:/etc/mysql/conf.d
- ./_script/docker-mysql/sql/:/docker-entrypoint-initdb.d
command: --sql_mode=''
security_opt:
- seccomp:unconfined
minio:
image: minio/minio:latest
container_name: minio
environment:
- MINIO_ACCESS_KEY=accesskey
- MINIO_SECRET_KEY=secretkey
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=admin12345
volumes:
- ./_volume/docker-minio:/data
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
minio-script:
image: minio/mc
container_name: minio-script
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 admin admin12345;
/usr/bin/mc mb myminio/udon-data-lake || true;
# /usr/bin/mc admin user add myminio accesskey secretkey || true;
# /usr/bin/mc admin policy set myminio readwrite user=accesskey || true;
exit 0;
"
hive-metastore:
container_name: hive-metastore
build:
context: _dockerfile/docker-metastore
dockerfile: Dockerfile
command:
- /bin/sh
- -c
- |
sleep 10;
/entrypoint.sh
ports:
- "9083:9083"
depends_on:
- mysql
- minio