You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to deploy two applications on a single server using Kamal 2.4.0.
Here is the setup I am aiming for:
app1: Port 3001, accessible via app1.example.com
app2: Port 3002, accessible via app2.example.com
Currently, I can achieve this by explicitly specifying the port numbers in config/deploy.yml.
However, as I plan to deploy various applications across multiple servers, I would prefer a solution where I only define the domain names, and the ports are automatically handled in an efficient way.
If anyone has approached this problem differently or has suggestions for a better solution, I’d love to hear your thoughts!
For reference, I noticed that there is a socket file located at /tmp/kamal-proxy.sock within the kamal-proxy container. Could this be leveraged somehow?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to deploy two applications on a single server using Kamal 2.4.0.
Here is the setup I am aiming for:
Currently, I can achieve this by explicitly specifying the port numbers in config/deploy.yml.
However, as I plan to deploy various applications across multiple servers, I would prefer a solution where I only define the domain names, and the ports are automatically handled in an efficient way.
If anyone has approached this problem differently or has suggestions for a better solution, I’d love to hear your thoughts!
For reference, I noticed that there is a socket file located at /tmp/kamal-proxy.sock within the kamal-proxy container. Could this be leveraged somehow?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions