2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-03 19:44:58 +01:00

update presto

This commit is contained in:
kev
2019-09-28 13:06:26 +08:00
parent 7758b2240f
commit 708ff76516
12 changed files with 89 additions and 38 deletions

50
presto/docker-stack.yml Normal file
View File

@@ -0,0 +1,50 @@
version: "3.7"
services:
coordinator:
image: vimagick/presto
ports:
- "8080:8080"
volumes:
- /data:/data
- presto_coordinator_conf:/opt/presto/etc
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
- node.hostname == presto-coordinator
restart_policy:
condition: on-failure
worker:
image: vimagick/presto
volumes:
- /data:/data
- presto_worker_conf:/opt/presto/etc
deploy:
replicas: 0
placement:
constraints:
- node.role == worker
restart_policy:
condition: on-failure
depends_on:
- coordinator
volumes:
presto_coordinator_conf:
driver: local
driver_opts:
type: nfs
o: "addr=10.0.0.1,nolock,soft,ro"
device: ":/export/presto/coordinator"
presto_worker_conf:
driver: local
driver_opts:
type: nfs
o: "addr=10.0.0.1,nolock,soft,ro"
device: ":/export/presto/worker"