#community-help

Configuring Docker Swarm and Exposing Ports: TypeSense Documentation

TLDR gaurav sought assistance on running the '/health URL' and exposing it to port 80 in docker-stack.yml based on TypeSense documentation. Jason explained that different network adapters should be used for each VM.

Powered by Struct AI

1

1

1

Oct 18, 2022 (14 months ago)
gaurav
Photo of md5-c793ac7faa870e19aa043d1f9b35abd1
gaurav
11:44 AM
Hi, 👋
I was trying running docker swarm based on documentation and it worked for me where i was able to set up in multiple AWS VM’s using it.
However this might be a simple question but i am not sure how to run /health URL as it didnt provided in documentation.
Also i want to expose it to port 80, how to do it in docker-stack.yml ?

Again shoutout to TypeSense team and community. 🚀

1

Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:30 PM
You can change the port by changing the value for --api-port in the docker stack config file
06:31
Jason
06:31 PM
> However this might be a simple question but i am not sure how to run /health URL as it didnt provided in documentation.
You want to use curl or postman for this
Oct 19, 2022 (14 months ago)
gaurav
Photo of md5-c793ac7faa870e19aa043d1f9b35abd1
gaurav
11:30 AM
got it. Thanks.

So in multi VM setup. I think for each VM we have to provide different ports, as the docker-stack throws error.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:12 PM
You also want the VMs listening on different network adapters, then you can have them listening on the same port

1

1