Replies: 3 comments 4 replies
-
@peaklabs-dev can you add this extra info to #2427? |
Beta Was this translation helpful? Give feedback.
-
you can use a custom.yml file to override the defaults also i use this since i dont need any ports mapped to host services:
coolify:
ports: !reset []
soketi:
ports: !reset [] but you can also use !override services:
coolify:
ports: !override
- 127.0.0.1:8000:80
soketi:
ports: !override
- 127.0.0.1:6001:6001
- 127.0.0.1:6002:6002 |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! I wasted 4 days trying to figure out how to do this correctly while going through my server checklist. I'm glad I found these posts. For my specific setup, (Debian 12 Bookworm) I did the following: 1. Install Tailscale
2. Test SSH Access
3. Bind Docker to Tailscale IP
4. Verify
|
Beta Was this translation helpful? Give feedback.
-
This issue was closed but I found a cleaner solution on how to deal with this:
The solution is to add the following to
/data/coolify/source/.env
:APP_PORT=127.0.0.1:8000
This will bind the docker service to the localhost not exposing it to the internet.
In my case I'm actually using tailscale and I want to still keep it exposed to that network so I can simply grab the ip with
tailscale ip
and use that instead of 127.0.0.1The final solution to add the entry to the file looks something like this:
Afterwards if you run the
/data/coolify/source/upgrade.sh
script the services should be restarted with the new variable.If there is someone from the collaborators or the team that could add/link the solution to that issue, maybe it will help other people out there.
FYI:
There is a weird artifact 0/tcp shouldn't be there but it should be of no consequence:
Ports before:
443/tcp, 8000/tcp, 9000/tcp, 0.0.0.0:8000->80/tcp
Ports after:
0/tcp, 443/tcp, 9000/tcp, 127.0.0.1:8000->80/tcp
FYI 2:
Oh, and keep in mind that the coolify-realtime is still exposed. I'm new to coolify so I will just avoid exposing till I know what is for.
0.0.0.0:6001-6002->6001-6002/tcp
Beta Was this translation helpful? Give feedback.
All reactions