Skip to content

fix(stack): Pin realtime database connection to IPv4 in docker mode - #5860

Closed
vismaytiwari wants to merge 1 commit into
supabase:developfrom
vismaytiwari:fix/realtime-docker-db-ip-version
Closed

vismaytiwari wants to merge 1 commit into
supabase:developfrom
vismaytiwari:fix/realtime-docker-db-ip-version

Conversation

@vismaytiwari

Copy link
Copy Markdown

In docker mode the realtime service connects to the database via host.docker.internal, which resolves to IPv4 only on Docker Desktop. Without DB_IP_VERSION set, realtime attempts IPv6 first and hangs, so stack.start() never completes.

This sets DB_IP_VERSION=ipv4 on the docker realtime service so it connects over IPv4.

Fixes #5788.

In docker mode the realtime service connects to the database via
`host.docker.internal`, which resolves to IPv4 only on Docker Desktop.
Without `DB_IP_VERSION` set, realtime attempts IPv6 first and hangs, so
`stack.start()` never completes.

Set `DB_IP_VERSION=ipv4` on the docker realtime service and add a unit
test covering it.

Fixes supabase#5788.
@vismaytiwari
vismaytiwari requested a review from a team as a code owner July 11, 2026 07:49
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thanks! The linked issue hasn't been marked open-for-contribution yet, so this pull request is being closed automatically.

A maintainer adds that label once an issue is triaged and ready to be worked on. Please wait for the label before opening a pull request.
See CONTRIBUTING.md for the full workflow. Once a maintainer adds the open-for-contribution label to a linked open issue, reopen or open a new pull request and it will be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stack: realtime service cannot run (or be consumed) in docker mode

1 participant