[Improvement]: Internal URL for services and other non-database applications #3158
Replies: 9 comments 1 reply
-
Have you considered using an ssh tunnel to do this? I'll follow up with an example. |
Beta Was this translation helpful? Give feedback.
-
@ayntk-ai Assuming you have SSH enabled for your VPS you can edit /etc/ssh/sshd_config and enable port forwarding by removing the comment hash from
You can then go to http://localhost:local-port in a web browser to access the remote environment. |
Beta Was this translation helpful? Give feedback.
-
@stuart-haas I am using Twingate and sometimes another OpenVPN setup but I need a way to access applications deployed on Coolify only through a local URL. Which is a challenge as each container/each service has its own network where a VPN connector would need to be deployed unless there was some kind of structure like an internal URL that would be available for the host VPS. |
Beta Was this translation helpful? Give feedback.
-
@ayntk-ai If you have a VPN why not just use that? You could always add a layer of authentication, too. |
Beta Was this translation helpful? Give feedback.
-
@stuart-haas because how would I access mt ressource, it has its own network? And what would be the URL? |
Beta Was this translation helpful? Give feedback.
-
+1 on this. Would be very useful to expose certain ports on deployments to a VPN, for eg. |
Beta Was this translation helpful? Give feedback.
-
@peaklabs-dev do you have a working example of using a SSH bridge/tunnel to a resource? In my case let's say I have a pg database with Coolify, I want to use an UI from my own computer. Since I'm able to connect to my VPS with SSH I guess I could manage a reverse proxy or so, and try to use the internal URL of the database resource (that should be fixed?). But having a sample would help me 👍 Thank you, EDIT: the idea is to not expose the resource publicly |
Beta Was this translation helpful? Give feedback.
-
Is there any news? I am trying to connect via Datagrip to a mariadb instance on Coolify but I can't connect to the docker instance of mariadb. Thanks in advance for the help. I want to connect trough an SSH tunnel without making the resource public. |
Beta Was this translation helpful? Give feedback.
-
you can use WARP client/ WARP connectors for this also my vps uses a cf tunnel, and i use a split tunnel from a WARP client locally with the vps private ip and docker CIDR excluded this means i can just use any private ip from my vps locally and it just works i also run a script to update the hosts file on my vps for all containers with their dns names this way i have 0 ports mapped to host and can access all containers locally using the private network (there is a way to use DNS fallback and point to my vps for names but then i would need to add a .test domain or something similar to all contaqiner names in hsots file and im not that fussed about it |
Beta Was this translation helpful? Give feedback.
-
Description
I want to deploy phpMyAdmin and some other services on my VPS, but I do not want to add a public facing domain or use sslip.io (as these are accessible from the internet). I want to use an internal URL that is only accessible when I VPN into the coolify/docker instance or something similar that is only locally accessible -> an internal private URL, like there is for databases but for hole services. (I am not sure if this is technically possible though)
Minimal Reproduction (if possible, example repository)
-> Challenge: Each container has its own destination/ network.
Example structure:
http://ContainerName-[uuid].local
Exception or Error
No response
Version
Beta Was this translation helpful? Give feedback.
All reactions