Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev database docker block has no way to set connection details #3192

Open
icopp opened this issue Oct 16, 2024 · 0 comments
Open

Dev database docker block has no way to set connection details #3192

icopp opened this issue Oct 16, 2024 · 0 comments

Comments

@icopp
Copy link

icopp commented Oct 16, 2024

This means that things break as soon as you use any Docker image that doesn't use the default assumption for username/password/etc for initial setup, like the Supabase Postgres image (which uses the user supabase_admin for initial bootstrapping and postgres for more limited runtime access).

There's a very janky workaround for the Supabase use case, which is to make a Dockerfile like so:

# Dockerfile

FROM supabase/postgres:15.6.1.132

COPY override-permissions.sql /docker-entrypoint-initdb.d/migrations/99999999999999-override-permissions.sql
-- override-permissions.sql
ALTER USER postgres WITH SUPERUSER;

Not great, though.

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

No branches or pull requests

1 participant