coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
33.99k stars 1.84k forks source link

[Bug]: Enable ipv6 in coolify network #3095

Closed Vahor closed 1 week ago

Vahor commented 2 months ago

Description

I need to access the ipv6 of an app running in a container. But the network does not seem to be able to access those ips.

I can delete the coolify network and recreate it with ipv6 support but as it's also managed by coolify it seems hacky and doing so on every server does not seem nice. (That's what I'm currently doing)

Doc is not very clear about what the flag does, but I also tried with --ip6, it does not change anything

Minimal Reproduction (if possible, example repository)

Inside a container using the coolify network or docker run --rm -it --network coolify ubuntu

apt update && apt install curl -y
curl https://ipv6.icanhazip.com/

You'll see an error

curl: (7) Failed to connect to ipv6.icanhazip.com port 443 after 3 ms: Couldn't connect to server

(works for ipv4)

Note: or simpler by installing net-tools and running ifconfig, you'll see that with coolify network you don't have the inet6, but without the coolify network an address is here.

For comparison, you can run a container using the host network docker run --rm -it ubuntu. Same commands, here it woks.

Exception or Error

No response

Version

v4.0.0-beta.323

Cloud?

Vahor commented 2 months ago

https://github.com/coollabsio/coolify/issues/2495 can also be a solution, adding a custom network with ipv6 and using this one will solve my problem. Edit: we'd still have to enable the ipv6 support on docker

peaklabs-dev commented 1 week ago

This is an improvement request as it has not yet been implemented, so I am moving this to a GitHub discussion - the other issue is slightly different and has a bounty so I can not move it.