version: "3.7" services: coordinator: image: vimagick/prestosql:alpine ports: - "8080:8080" volumes: - /data:/data - prestosql_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/prestosql:alpine volumes: - /data:/data - prestosql_worker_conf:/opt/presto/etc deploy: replicas: 0 placement: constraints: - node.role == worker restart_policy: condition: on-failure depends_on: - coordinator volumes: prestosql_coordinator_conf: driver: local driver_opts: type: nfs o: "addr=10.0.0.1,nolock,soft,ro" device: ":/export/prestosql/coordinator" prestosql_worker_conf: driver: local driver_opts: type: nfs o: "addr=10.0.0.1,nolock,soft,ro" device: ":/export/prestosql/worker"