Documentation adjustment
landru29 opened this issue · comments
Cyrille Meichel commented
- Can't find the documentation to add a predictor to my service
- My service bind port 9000; can find documentation to tell that http://ip_predictor:80 will reach port 9000 of my service
Jean-Tiare Le Bigot commented
Hello @landru29,
Thanks for your feedback regarding the documentation. There is indeed some room for improvement.
Creating a service to use the HTTP load balancer is fairly easy. For example, let's say an image called "hello" listens on port 9000 like in your question, you may create a "world" service like this:
sail service create hello world --network private --network predictor -p 9000
This service will then be reachable on port 80 from http://world.your_user_name.app.sailabove.io or any custom domain attached to this application.