forked from dgkatz/trino-hive-superset-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
94 lines (91 loc) · 1.76 KB
/
docker-compose.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
version: "3.9"
services:
hive:
build: ./hive
entrypoint: /init-hive.sh
ports:
- "9083:9083"
- "10000:10000"
- "10002:10002"
depends_on:
- postgres
- minio
deploy:
resources:
limits:
cpus: 0.5
memory: 500M
postgres:
image: postgres:latest
environment:
- POSTGRES_USER=hive
- POSTGRES_PASSWORD=hive
- POSTGRES_DB=metastore
volumes:
- postgres-data:/var/lib/postgresql/data
deploy:
resources:
limits:
cpus: 0.5
memory: 500M
minio:
image: minio/minio:latest
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
environment:
MINIO_ACCESS_KEY: minio_access_key
MINIO_SECRET_KEY: minio_secret_key
command: server /data --console-address ":9001"
deploy:
resources:
limits:
cpus: 1
memory: 1G
trino-coordinator:
image: "trinodb/trino:latest"
ports:
- '8080:8080'
volumes:
- ./trino/coordinator/etc:/etc/trino:ro
depends_on:
- hive
- trino-worker
deploy:
resources:
limits:
cpus: 2
memory: 3G
trino-worker:
image: "trinodb/trino:latest"
volumes:
- ./trino/worker/etc:/etc/trino:ro
depends_on:
- hive
deploy:
mode: replicated
replicas: 2
resources:
limits:
cpus: 2
memory: 6G
superset:
build: ./superset
ports:
- "8088:8088"
volumes:
- superset-data:/app/superset_home
deploy:
resources:
limits:
cpus: 1
memory: 1G
volumes:
minio-data:
driver: local
postgres-data:
driver: local
superset-data:
driver: local