forked from minio/presto-minio
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
61 lines (61 loc) · 1.51 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
version: '1'
services:
minio:
hostname: minio-server
image: 'minio/minio:latest'
container_name: minio-server
command: server --console-address ":9001" /minio
ports:
- '9000:9000'
- '9001:9001'
environment:
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
volumes:
- '~/minio/data:/minio'
hadoop:
hostname: hadoop-master
image: 'prestodb/hive3.1-hive:10'
container_name: hadoop-master
environment:
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
volumes:
- './hadoop/core-site.xml:/opt/hadoop/etc/hadoop/core-site.xml'
ports:
- '9083:9083'
depends_on:
- minio
presto:
hostname: presto
image: 'ahanaio/prestodb-sandbox:0.280'
container_name: presto
ports:
- '8080:8080'
volumes:
- './presto/etc/catalog/minio.properties:/opt/presto-server/etc/catalog/minio.properties'
depends_on:
- minio
- hadoop
mc-job:
image: 'minio/mc:latest'
environment:
MC_HOST_presto: "http://minioadmin:minioadmin@172.19.0.2:9000"
volumes:
- './minio/data:/minio'
depends_on:
- minio
- hadoop
entrypoint: |
/bin/bash -c "
/usr/bin/mc mb presto/customer-data-text;
/usr/bin/mc mb presto/customer-data-orc;
/usr/bin/mc mirror minio/customer-data-text presto/customer-data-text;
"
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.19.0.1/16