Skip to content

Connect to gluetun and another service not using gluetun in same compose? #492

Answered by qdm12
SteveNikkola asked this question in Q&A
Discussion options

You must be logged in to vote

It's because it uses Unbound with DNS over tls through the vpn. Unbound is not aware of the Docker hostnames such as postgres. You might want to subscribe to the issue #281 for that. It will eventually be resolved but don't expect it too soon either. You can disable DOT and use KEEP_NAMESERVER so gluetun uses the Docker DNS but then all your DNS requests will leak out of the VPN and in plaintext if you did not configure some dns server on your LAN (like github.com/qdm12/dns). The viable alternative is to set a fixed IP address to postgres using docker-compose and use IP address to connect to it for now.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SteveNikkola
Comment options

Answer selected by SteveNikkola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants