-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.39 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
version: "2"
services:
coordinator-1:
container_name: coordinator-1
networks: ["vnet"]
hostname: coordinator-1.vnet
image: smizy/presto:0.222-alpine
ports:
- 8080:8080
environment:
- PRESTO_JVM_MAX_HEAP=512M
- PRESTO_QUERY_MAX_MEMORY=1GB
- PRESTO_QUERY_MAX_MEMORY_PER_NODE=256MB
- PRESTO_QUERY_MAX_TOTAL_MEMORY_PER_NODE=384MB
- PRESTO_MEMORY_HEAP_HEADROOM_PER_NODE=100MB
- TERM=xterm
command: coordinator
worker-1:
container_name: worker-1
networks: ["vnet"]
hostname: worker-1.vnet
image: smizy/presto:0.222-alpine
depends_on: ["coordinator-1"]
environment:
- PRESTO_JVM_MAX_HEAP=512M
- PRESTO_QUERY_MAX_MEMORY=1GB
- PRESTO_QUERY_MAX_MEMORY_PER_NODE=256MB
- PRESTO_QUERY_MAX_TOTAL_MEMORY_PER_NODE=384MB
- PRESTO_MEMORY_HEAP_HEADROOM_PER_NODE=100MB
- TERM=xterm
command: worker
worker-2:
container_name: worker-2
networks: ["vnet"]
hostname: worker-2.vnet
image: smizy/presto:0.222-alpine
depends_on: ["coordinator-1"]
environment:
- PRESTO_JVM_MAX_HEAP=512M
- PRESTO_QUERY_MAX_MEMORY=1GB
- PRESTO_QUERY_MAX_MEMORY_PER_NODE=256MB
- PRESTO_QUERY_MAX_TOTAL_MEMORY_PER_NODE=384MB
- PRESTO_MEMORY_HEAP_HEADROOM_PER_NODE=100MB
- TERM=xterm
command: worker
networks:
vnet:
external:
name: vnet