prestodb / prestorials

Tutorials and examples of how to deploy Presto and connect it to different data sources
https://prestodb.io/
Apache License 2.0
19 stars 11 forks source link

Update docker-compose-native #22

Closed pramodsatya closed 4 months ago

pramodsatya commented 4 months ago

Adds 2nd worker, updates image, and separates the config files

pramodsatya commented 4 months ago

Could you please help review this change @wanglinsong ?

wanglinsong commented 4 months ago
    ports:
      - 8081:8081

is

    ports:
      - host-port:container-port

A Presto service running inside a container is listening at port 8080, by default. All Presto containers share the same port range on one host (vm), so the port 8080 in containers need to map to different ports on the host.

wanglinsong commented 4 months ago

I did not notice the workers are running on different container ports, so 8081:8081 works ok, then.