-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
73 lines (68 loc) · 1.65 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
version: "3.7"
services:
mysql:
image: mysql:5.7.33
environment:
- MYSQL_ROOT_PASSWORD=password
expose:
- "3306"
volumes:
- ./runtime/mysql:/docker-entrypoint-initdb.d:ro
presto:
image: ingomuellernet/presto:0.258
depends_on:
- mysql
- hive
- datanode
- namenode
volumes:
- ./runtime/presto/copy.d:/scripts/copy.d:ro
- ./runtime/presto/run.d:/scripts/run.d:ro
ports:
- "8080:8080"
command: ["wait-for-it", "hive:9083", "-t", "60",
"--", "/opt/presto/bin/launcher", "run"]
presto-worker:
image: ingomuellernet/presto:0.258
depends_on:
- presto
volumes:
- ./runtime/presto-worker/copy.d:/scripts/copy.d:ro
- ./runtime/presto-worker/run.d:/scripts/run.d:ro
expose:
- "8080"
ports:
- "35000-35999:8080"
command: ["wait-for-it", "presto:8080", "-t", "60",
"--", "/opt/presto/bin/launcher", "run"]
namenode:
image: ingomuellernet/presto:0.258
volumes:
- ./data/:/data/:ro
expose:
- "8020"
ports:
- "9870:9870"
command: ["hdfs", "namenode"]
datanode:
image: ingomuellernet/presto:0.258
depends_on:
- namenode
ports:
- "36000-36999:9864"
expose:
- "9866"
- "9867"
- "46759"
command: ["wait-for-it", "datanode:8020", "-t", "10",
"--", "hdfs", "datanode"]
hive:
image: ingomuellernet/presto:0.258
depends_on:
- mysql
- namenode
- datanode
ports:
- "9083:9083"
command: ["wait-for-it", "mysql:3306", "-t", "30",
"--", "/scripts/hive-entrypoint.sh"]