electric-sql / electric-sql/electric

Unix Domain Socket cannot be specified in DATABASE_URL

Open
#2,650 1 comment 1 reaction 0 assignees View on GitHub
improvement
Dominant language
TypeScript
Stars
10.4k
Forks
375
Avg merge
3d 1h
Merged PRs (30d)
18

Description

**Versions**
- Electric: 1.0.11

**Bug description**
I'm trying to deploy the electric sync-service docker image in a cloud environment (GCP). This environment exposes our postgres server as a unix domain socket. I've tried every single combination of URL's but I simple cannot get electric to pass the URL correctly (see this [stackoverflow](https://stackoverflow.com/a/29356068/3255396).

From what i've read online I would need to use `socket_dir` in Ecto but the docker image does not expose that as an env var: https://github.com/elixir-ecto/postgrex/issues/415

**Expected behavior**
Be able to specify a valid Unix Domain Socket as a database connection

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.