forked from saj1th/docker-presto-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-1w-g.yml
37 lines (36 loc) · 1.2 KB
/
docker-compose-1w-g.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
version: '3'
#
# Take care to use the appropriate connector name in the .properties files!
#
services:
coordinator:
image: "${DOCKERHUB_ID}/${PRESTVAR}-dbx-coordinator:${PRESTO_VERSION}"
ports:
- "8080:8080"
container_name: "coordinator"
volumes:
# - ./deltas3g.properties:/usr/local/${PRESTVAR}-server-${PRESTO_VERSION}/etc/catalog/deltas3g.properties:ro
- ./deltas3.properties:/usr/local/${PRESTVAR}-server-${PRESTO_VERSION}/etc/catalog/deltas3.properties:ro
command: http://coordinator:8080 coordinator
env_file:
- _nodeconfig.env
deploy:
resources:
limits:
memory: 4G
# worker0 really needs 5G to reliably stay up
worker0:
image: "${DOCKERHUB_ID}/${PRESTVAR}-dbx-worker:${PRESTO_VERSION}"
container_name: "worker0"
volumes:
# - ./deltas3g.properties:/usr/local/${PRESTVAR}-server-${PRESTO_VERSION}/etc/catalog/deltas3g.properties:ro
- ./deltas3.properties:/usr/local/${PRESTVAR}-server-${PRESTO_VERSION}/etc/catalog/deltas3.properties:ro
ports:
- "8081:8081"
command: http://coordinator:8080 worker0
env_file:
- _nodeconfig.env
deploy:
resources:
limits:
memory: 5G