diff --git a/presto/README.md b/presto/README.md index 242c81f..5dfdffc 100644 --- a/presto/README.md +++ b/presto/README.md @@ -4,7 +4,20 @@ presto [Presto][1] is a distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources. -## up and running +## standalone mode + +```yaml +presto: + image: vimagick/presto + ports: + - "8080:8080" + volumes: + - ./conf/standalone:/opt/presto/etc:ro + - /data:/data + restart: unless-stopped +``` + +## cluster mode ```bash $ ansible all -a 'mkdir -p /data' diff --git a/presto/conf/coordinator/node.properties b/presto/conf/coordinator/node.properties index fa4cd1e..24ee579 100644 --- a/presto/conf/coordinator/node.properties +++ b/presto/conf/coordinator/node.properties @@ -1,3 +1,3 @@ node.environment=production -node.id=coordinator node.data-dir=/data +node.id=coordinator diff --git a/presto/conf/standalone/node.properties b/presto/conf/standalone/node.properties index 974b480..f2cf0e0 100644 --- a/presto/conf/standalone/node.properties +++ b/presto/conf/standalone/node.properties @@ -1,3 +1,3 @@ node.environment=production -node.id=standalone node.data-dir=/data +node.id=standalone