Skip to content

Document steps for configuring Sentry Self-Hosted with an external PostgreSQL database (instead of Docker-local DB) #4138

@franciscomasi

Description

@franciscomasi

Problem Statement

Hi 👋

I’m currently setting up Sentry Self-Hosted using an external PostgreSQL database (e.g. AWS RDS) instead of the PostgreSQL service bundled in the default docker-compose setup.

While the standard installation documentation is very good, it’s not clear or centralized how to properly configure this setup, specifically:

  • Which services should be disabled (PostgreSQL, pgbouncer, etc.)
  • Which environment variables must be set to point to an external database
  • Where these variables should be defined (.env, overrides, etc.)
  • Whether these changes should be done before or after running install.sh
  • Additional considerations (migrations, permissions, SSL, external pgbouncer, etc.)

Although it’s possible to infer this by inspecting docker-compose.yml and existing configs, having an official documented guide would be extremely helpful, as using a managed database is a very common production scenario.

Thanks for the great work on Sentry, and for considering this documentation improvement 🙌

Solution Brainstorm

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions