[Improvement]: Internal URL for services and other non-database applications #3158
Replies: 13 comments 3 replies
|
Have you considered using an ssh tunnel to do this? I'll follow up with an example. |
|
@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. |
|
@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. |
|
@ayntk-ai If you have a VPN why not just use that? You could always add a layer of authentication, too. |
|
@stuart-haas because how would I access mt ressource, it has its own network? And what would be the URL? |
|
+1 on this. Would be very useful to expose certain ports on deployments to a VPN, for eg. |
|
@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 |
|
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. |
|
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 |
|
@peaklabs-dev Did you find a solution for your question? I arrived a t the same problem today. I have a private wireguard network between my coolify machines and my home computer. For this example, consider that my coolify host is on I was expecting to be able to connect to that service with my private address, so I can hide the service from the public internet with But I get a connection timeout when loading in the browser. My host machine is definitely on the private network, e.g. |
|
I found the problem, it's a LAN issue. I have a windows machine with WSL, but the private network is only working within the WSL and not from windows. As my browser is running on Windows, it cannot reach the private network. From WSL
Thanks for your hints @peaklabs-dev! |
|
I did make it work using consistent container names. I just use |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions